error when opening php page

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
shahab03
Forum Newbie
Posts: 3
Joined: Tue May 27, 2008 8:05 pm

error when opening php page

Post 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?
User avatar
allspiritseve
DevNet Resident
Posts: 1174
Joined: Thu Mar 06, 2008 8:23 am
Location: Ann Arbor, MI (USA)

Re: error when opening php page

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: error when opening php page

Post 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.
Post Reply