Click to See Complete Forum and Search --> : Testing my PHP Script
Comp-Freak
08-23-2007, 03:34 AM
Hi, im not only new to PHP but also new to these forums:) .
So the question is: How do i test my PHP script?
Notes:
Im running Windows Xp.
Currently im testing my Site with Apache HTTP Server 2.2.4.
I got PHP 5 installed.
The Php file im trying to test is: test.php:
<?php
echo "Yay?";
?>
Thanks:D
chestertb
08-23-2007, 05:19 AM
If your apache is configured properly and your php is installed correctly, then just put your test.php script in your server root, open a browser and type localhost/test.php in the address line.
If it's all working, you'll get your "Yay?"
Comp-Freak
08-23-2007, 06:47 AM
Thanks for the reply:) , how do i configure them correctly:o ? right now all i get is the OPEN or SAVE window, and if i click on open it opens in notepad.
Edit: just found out that apache 2.2 doesnt wokr wiht php5 so im downgrading to 2.0 maybe thatl fix my problem.
source:
chestertb
08-23-2007, 07:50 AM
There wil be others around here who could guide you... but honestly, installing apache and php correctly on windoze is beyond me.
However, there is an easier way... there are some bundled installers out there that take the pain out of the process, though only you can decide whether the few dollars they cost is worth more or less than the hours you'll spend tinkering trying to get everything working.
I used one called Sokkit. It was quick, easy and painless to install, and it worked first time. If you're interested, go to www.sokkit.net.
CTB
Comp-Freak
08-23-2007, 07:53 AM
Thanks, ill try installing it some more and if it doesnt wokr ill see about the installers:D .
ellisgl
08-23-2007, 10:43 AM
wampserver.com
Comp-Freak
08-23-2007, 11:17 AM
Thanks guys! i finnally got it to work :D now i can experiment all i want:rolleyes: