IPB

Welcome Guest ( Log In | Register )



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

How do you test your php code


Xenon
no avatar
Newbie [Level 1]
*
Group: Members
Posts: 20
Joined: 6-August 04
From: SOS!! I'm drowned!
Member No.: 692



Post #1 post Aug 7 2004, 12:17 AM
We know that php is a server side scripting language. So we will need a server with the php parser to parse/test our code.
How are you doing that. Do you upload it to a server for testing or did you instal php and the server (apache) on your computer (localhost)
Go to the top of the page
+Quote Post
outwarsecrets
no avatar
Member [Level 1]
****
Group: Members
Posts: 58
Joined: 5-August 04
From: CA, USA
Member No.: 677



Post #2 post Aug 7 2004, 01:04 AM
I upload it to my server, and usualy name it filenametest.php or something
Go to the top of the page
+Quote Post
chinfo
no avatar
Advanced Member
*******
Group: Members
Posts: 119
Joined: 19-July 04
Member No.: 140



Post #3 post Aug 7 2004, 03:46 AM
I don't run my own server so I test all server-side scripts through the web host. Testing your scripts locally is deemed good practice, but the logistics involved in running your own server beats down the practicality value at the moment. Also, sometimes your local server may run scripts differently than your actual host.
Go to the top of the page
+Quote Post
Gamesquare
no avatar
Newbie [Level 3]
***
Group: Members
Posts: 45
Joined: 4-August 04
Member No.: 667



Post #4 post Aug 7 2004, 04:31 AM
I wouldn't test them locally. Maybe if I wasn't too lazy to install Apache, but the web server could still be configured differently, as chinfo says.
Go to the top of the page
+Quote Post
Spectre
no avatar
Privileged Member
*********
Group: Members
Posts: 873
Joined: 30-July 04
Member No.: 246



Post #5 post Aug 7 2004, 10:03 AM
I always test my scripts locally before sending them anywhere. If your server is configured differently, then change the configuration to match the host. You can find all the information you should need to match by calling phpinfo().
Go to the top of the page
+Quote Post
Lurk
no avatar
Member [Level 2]
*****
Group: [HOSTED]
Posts: 80
Joined: 12-July 04
Member No.: 79



Post #6 post Aug 7 2004, 03:17 PM
I always test them locally.
I have Apache, PHP, and MySQL installed, so i can test them smile.gif
Go to the top of the page
+Quote Post
Roly
no avatar
Advanced Member
*******
Group: Members
Posts: 144
Joined: 24-July 04
From: Arizona
Member No.: 189



Post #7 post Aug 8 2004, 01:07 AM
I always upload them and test them, I always expect at least one error the first time. Maybe when I get a good enough computer I'll install PHP in it.
Go to the top of the page
+Quote Post
Spectre
no avatar
Privileged Member
*********
Group: Members
Posts: 873
Joined: 30-July 04
Member No.: 246



Post #8 post Aug 8 2004, 06:53 PM
You don't need a good computer to run a simple webserver and PHP/MySQL, provided you are only using locally. You could use a 486 if you wanted.
Go to the top of the page
+Quote Post
Roly
no avatar
Advanced Member
*******
Group: Members
Posts: 144
Joined: 24-July 04
From: Arizona
Member No.: 189



Post #9 post Aug 9 2004, 01:14 AM
Well I do need a good connection 'cause I've had other people connect to my pc using CesarFTP but it doesn't work after a while.
Go to the top of the page
+Quote Post
slacker
no avatar
Newbie
*
Group: Members
Posts: 9
Joined: 9-August 04
Member No.: 737



Post #10 post Aug 9 2004, 04:54 AM
i use a home webserver, i installed apache triad, which installs apache, php mysql and a bunch of other stuff, im building my entire site on it b4 i upload it, plus its nice and fast
Go to the top of the page
+Quote Post

10 Pages V   1 2 3 > » 
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 - 10:32 PM

Web Hosting Powered by ComputingHost.com.