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?
error when opening php page
Moderator: General Moderators
- allspiritseve
- DevNet Resident
- Posts: 1174
- Joined: Thu Mar 06, 2008 8:23 am
- Location: Ann Arbor, MI (USA)
Re: error when opening php page
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
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
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: error when opening php page
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.
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.