View Full Version : Setting up PHP on a local computer
steveinid
Jan 2nd 2008, 4:55 pm
Today, I tried setting up PHP on my local computer. IIS is started, I got mysql setup as well but haven't tested that. My localhost is set to c:\inetpub\wwwroot. Everything seems to work fine but when I run a test program:
<html>
<head>
<title> PHP info</title>
</head>
<body>
<p>php info<br>
<?php
phpinfo();
?>
</p>
</body>
</html>
it only prints out "php info" without any information.
Is there anything I should look for that might cause php not to work?
jmhyer123
Jan 2nd 2008, 5:04 pm
Something is probably configured wrong... I wouldn't bother messing with it.
Just download this and you're good to go: http://www.wampserver.com/en/index.php
It has Apache, PHP, and MySQL it is ready to go out of the box and it very good and easy to install.
It's what I use and I love it!
azizny
Jan 2nd 2008, 8:31 pm
When you installed PHP, it asked you to select the server, you choose IIS, did it say it was installed successfully?
If yes, then it should be working fine. Try doing something else like:
<?php
echo "Hello World";
?>
Peace,
steveinid
Jan 2nd 2008, 9:49 pm
I abandoned that whole idea and loaded wampserver... that didn't work either so I tried phpdev which is working great.
kmap
Jan 3rd 2008, 11:58 am
Wamp works great but if you are running it along with iis you will need to change the port to 8080 or something else otherwise both will clash
Regards
Alex
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.