IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
10 Pages V  < 1 2 3 4 5 > »   
Reply to this topicStart new topic

How do you test your php code


sanweikui
no avatar
Member [Level 1]
****
Group: Members
Posts: 51
Joined: 24-September 04
Member No.: 1,256



Post #21 post Oct 1 2004, 03:56 AM
yes! testing your scripts locally is good practice. because of an error, the server maybe be damaged. upload it to the host then edit it, is not as simple as do that locally. there are so many article to describe how to set up the php server, so its very easy.
Go to the top of the page
+Quote Post
Guest_scriptsweb_*
no avatar

Guests






Post #22 post Oct 1 2004, 01:33 PM
Normally I upload my files to some online server. Bad freehosting.
Before uploading

CODE
[/br]<?[br]error_reporting(E_ALL); [/br]?>[br]


Put this in the top of my scripts biggrin.gif
Go to the top of the page
+Quote Post
whatknows
no avatar
Newbie [Level 1]
*
Group: Members
Posts: 10
Joined: 10-October 04
Member No.: 1,618



Post #23 post Oct 10 2004, 08:37 AM
I agree with Magic-Node. Get yourself over to EasyPHP and download a slick system with which you can test all of your code!

You will find that eventually there will be things that you cannot test on your desktop. The one I keep running into is the use of mail(), which uses sendmail on a *nix host, and nothing but errors on my own machine.
Go to the top of the page
+Quote Post
moscower
no avatar
Newbie [Level 1]
*
Group: Members
Posts: 12
Joined: 10-October 04
Member No.: 1,650



Post #24 post Oct 10 2004, 07:48 PM
People, use Denver, it is the most usefull tool for checking your php and perl scripts on local machine. It includes Apache+mod_rewrite+SSI+Perl+PHP(GD included)+MySQL(transaction support included)+Sendmail and all in 1 small file - only 2MB. You can simply install it on your local machine and it is all. You can made any count of domains, subdomains etc.

Download denver you can here.
Go to the top of the page
+Quote Post
serverph
no avatar
Ancient Enigma
**************
Group: [MODERATOR]
Posts: 1,952
Joined: 11-July 04
From: under the stars
Member No.: 76
myCENT:67.66



Post #25 post Oct 11 2004, 05:38 PM
i use xammp. get it at apachefriends.org
Go to the top of the page
+Quote Post
boyCradle
no avatar
Super Member
*********
Group: Members
Posts: 469
Joined: 30-September 04
From: Manila, Philippines
Member No.: 1,349



Post #26 post Oct 11 2004, 08:00 PM
making a localhost for Apache and php server is actually a good thing. it could save you time by finding out errors before you could actually upload it online., and of Course if you have many PHP file to upload and check online you would save your Bandwith!
Go to the top of the page
+Quote Post
Becca
no avatar
Princess
***********
Group: Members
Posts: 1,234
Joined: 9-October 04
From: England
Member No.: 1,563



Post #27 post Oct 11 2004, 08:37 PM
I have a html tester code thing but it um I dont know if it works with php I wouldnt think so
Go to the top of the page
+Quote Post
Danieluchis
no avatar
Yami no Hime
*********
Group: Members
Posts: 296
Joined: 20-October 04
From: Lalaland
Member No.: 1,849



Post #28 post Oct 20 2004, 09:35 PM
i upload it to me host and test it, is there a way to check them locally? how's that? i need to download the apache, php and mysql? X_x?
Go to the top of the page
+Quote Post
moscower
no avatar
Newbie [Level 1]
*
Group: Members
Posts: 12
Joined: 10-October 04
Member No.: 1,650



Post #29 post Oct 23 2004, 08:42 PM
Danieluchis, you only need to install Denver and Apache+PHP+MySQL will be on your local machine.
Go to the top of the page
+Quote Post
Lyon
no avatar
Super Member
*********
Group: Members
Posts: 360
Joined: 17-October 04
Member No.: 1,795



Post #30 post Oct 25 2004, 08:34 PM
i alsow agree with the ones that say to test first localy and then remotly.
try to know the right configuration of your remote server and configure your local server the same way, i know it can be harder, but can alsow be better for you, because you'll have more time to test your scripts localy.
Go to the top of the page
+Quote Post

10 Pages V  < 1 2 3 4 5 > » 
Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   3 -Sky- 663 12th June 2009 - 08:48 PM
Last post by: -Sky-
No New Posts 7 odomike 19,022 30th April 2008 - 02:44 PM
Last post by: FeedBacker
No New Posts   11 bttfpromo 11,545 14th September 2004 - 08:55 PM
Last post by: Magic-Node
No New Posts   2 Lurk 3,835 11th September 2004 - 05:40 PM
Last post by: Triple X
No New Posts   6 XtremeGamer99 6,315 9th February 2005 - 10:48 AM
Last post by: alexwhin
No New Posts 1 kylelnsn 1,252 26th July 2006 - 10:55 AM
Last post by: kdr_98
No new   25 gijoe18 24,501 20th February 2009 - 06:55 PM
Last post by: MALISH_
No New Posts   1 BCD 178 3rd September 2009 - 09:28 PM
Last post by: truefusion
No New Posts   5 Tetraca 1,251 15th July 2006 - 11:06 PM
Last post by: Plenoptic
No New Posts   4 icss21 3,024 7th March 2009 - 09:45 PM
Last post by: andreip
No new   21 googlue 14,996 9th October 2004 - 07:44 PM
Last post by: dontmaimyourself
No New Posts   3 jglw22 890 26th May 2008 - 02:10 PM
Last post by: Framp
No New Posts   4 Forbidden 7,570 28th March 2008 - 07:37 PM
Last post by: saran
No New Posts   9 hatebreed 6,720 22nd October 2004 - 10:50 PM
Last post by: keifer
No New Posts   6 sargilla 6,808 4th November 2004 - 02:54 PM
Last post by: Lyon


 



RSS Open Discussion Time is now: 21st November 2009 - 11:12 PM

Web Hosting Powered by ComputingHost.com.