Page 1 of 1

error when opening php page

Posted: Tue May 27, 2008 8:25 pm
by shahab03
i have simple php file stored under C:\Inetpub\wwwroot and below is the 1 line code in the info.php file:

<?php phpinfo(); ?>


when I try to access this file by typing http://localhost/info.php into the IE address bar I get a message for file download saying "Do you want to open or save this file?"

whats going on here?

Re: error when opening php page

Posted: Tue May 27, 2008 8:59 pm
by allspiritseve
It sounds to me like your server isn't running...

Why are you posting this in the Test-Driven Development forum?

Also-- I recommend you download firefox, instead of using IE. It's much better :D

Re: error when opening php page

Posted: Tue May 27, 2008 9:01 pm
by Chris Corbyn
Your web server is not interpreting the PHP code.

I'm not sure what you need to do to configure IIS to work with PHP, but I may suggest just using apache instead and following one of the many tutorials for setting it up, or install WAMP.