i want to test PHP scripts in my computer before uploading how can i do this is there any software i am using Windows XP SP2
thank you
you have to install web server (such as apache) and php. or you can use IIS web server that has already packed with winxp sp2 (i haven't try this on winxp).
next you can read both manual to configure your computer to test your php script.
The best ever guide for doing this:
http://www.tanguay.at/installPhp5.php5
It got me to understand, so lots of people probably could
I'm gonna do this as well. Since php is harder to code, it's a lot of trial and error, and I just don't have time to upload the file all the time.
do i need large amount of disk space
Do you need to have server software installed on your machine before PHP will work if installed locally? I tried to install PHP on my machine with dismal results.
| Quote: |
| do i need large amount of disk space |
Not really:
20 MB for PHP
60 MB for Apache 2.2 (with fair amount of files)
60 MB for MySQL (with huge database)
| Quote: |
| Do you need to have server software installed on your machine before PHP will work if installed locally? I tried to install PHP on my machine with dismal results. |
Yes, you do. Use that guide above. Or you could always go for XAMPP:
http://www.apachefriends.org/en/index.html
Unless you are prepared to do alot of work, I would recommend going for a prebuilt install like XAMPP as krazycapital said. As installing Apache with MySQL and PHP can be quite difficult sometimes.
Why not just try it online?
Like, for instance, on your FriHost hosting account?
Ya trying online will be the best
The idea is to test locally at no cost to yourself then upload to your web server. Uploading all the time when debugging can be slow depending on connection and wastes your bandwidth
I personally have found phpdev to be the best.