|
|
|
|
![]() ![]() |
Aug 7 2004, 12:17 AM
Post
#1
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 20 Joined: 6-August 04 From: SOS!! I'm drowned! Member No.: 692 |
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) |
|
|
|
Aug 7 2004, 01:04 AM
Post
#2
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: Members Posts: 58 Joined: 5-August 04 From: CA, USA Member No.: 677 |
I upload it to my server, and usualy name it filenametest.php or something
|
|
|
|
Aug 7 2004, 03:46 AM
Post
#3
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 119 Joined: 19-July 04 Member No.: 140 |
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.
|
|
|
|
Aug 7 2004, 04:31 AM
Post
#4
|
|
|
Newbie [Level 3] ![]() ![]() ![]() Group: Members Posts: 45 Joined: 4-August 04 Member No.: 667 |
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.
|
|
|
|
Aug 7 2004, 10:03 AM
Post
#5
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 874 Joined: 30-July 04 Member No.: 246 |
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().
|
|
|
|
Aug 7 2004, 03:17 PM
Post
#6
|
|
|
Member [Level 2] ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 80 Joined: 12-July 04 Member No.: 79 |
I always test them locally.
I have Apache, PHP, and MySQL installed, so i can test them |
|
|
|
Aug 8 2004, 01:07 AM
Post
#7
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 144 Joined: 24-July 04 From: Arizona Member No.: 189 |
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.
|
|
|
|
Aug 8 2004, 06:53 PM
Post
#8
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 874 Joined: 30-July 04 Member No.: 246 |
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.
|
|
|
|
Aug 9 2004, 01:14 AM
Post
#9
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 144 Joined: 24-July 04 From: Arizona Member No.: 189 |
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.
|
|
|
|
Aug 9 2004, 04:54 AM
Post
#10
|
|
|
Newbie ![]() Group: Members Posts: 9 Joined: 9-August 04 Member No.: 737 |
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
|