FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


How to test PHP





vignesh_natraj
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
ganbate
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.
krazycapital
The best ever guide for doing this:
http://www.tanguay.at/installPhp5.php5
It got me to understand, so lots of people probably could
Hobbit
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.
vignesh_natraj
do i need large amount of disk space
PatTheGreat42
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.
krazycapital
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
thnn
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.
Marston
Why not just try it online?

Like, for instance, on your FriHost hosting account?
avk
Ya trying online will be the best
mathiaus
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 Rolling Eyes

I personally have found phpdev to be the best.
Related topics
PHP: Feedback form issues.. help =P
How To : Secure Your PHP Website
[PHP] Error link
Running a "Hello World" php script
PHP Test File
PHP homepage recreation problem
php error ?[parse error]
PHP Problem
PHP variable problem
Codeur php/sql/js? j'ai besoin d'un coup de pouce
php dynamic graph code not working
PHP page turning problem
PHP: fopen('./directory/$variable'); Problem
PHP logging class
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.