PDA

View Full Version : Testing Php Problem Urgent!!



marc123
July 26th, 2003, 06:24 PM
I am try to do a simple php order form.

I have the order form with a..

<--form action="processorder.php" method=post on a html file-->

& the processorder.php with this code...

<--?php
echo '<p>Order processed. </p>';
?-->

I tested it & I dont see the words "order processed" php text.??

I think its because I have the html & php files in a folder on the desktop. I am supposed to put them in the local host folder?? & if so where is it??

DigitalPimp
July 27th, 2003, 05:35 AM
if your on windows and it's running iis then the default is c:\inetpub\wwwroot

Voetsjoeba
July 27th, 2003, 08:28 AM
I don't know if someone has already replied, cuz it took me ages again to load the rest of the page (for no reason at all), so I immediately hit the reply button.

PHP files will only work if they are on a server where PHP is installed. So to test this page, you have to upload it to a server with PHP installed, or, if you have a server on your computer and it has PHP installed, place it on that server and it should work.

marc123
July 27th, 2003, 01:48 PM
I dont see a c:\inetpub\wwwroot folder??

marc123
July 27th, 2003, 01:49 PM
I installed php-4.3.0-installer from this cd rom I got from this book..also installed Apache.

eyezberg
July 27th, 2003, 05:02 PM
uninstall and try either www.easyphp.org (which i use)
or http://www.foxserv.net/portal.php or http://www.firepages.com.au/dev423.htm
or another, here's a full list: http://www.hotscripts.com/PHP/Software_and_Servers/Installation_Kits/index.html
These will install all you need in one easy setup, php, apache, mySql, phpmyadmin etc, you're ready to roll in 5 mins...