Jump to content

error when opening php page


shahab03

Recommended Posts

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?

 

Link to comment
https://forums.phpfreaks.com/topic/107553-error-when-opening-php-page/
Share on other sites

I've not worked with IIS but I do believe it doesn't come packaged with PHP, as such, you'll need to install it.

 

http://www.simongibson.com/intranet/php2003/

 

Or alternatively, you can install one of the many pre-compiled and configured Apache+PHP+MySQL kits available and be up and running in a matter of minutes,

 

http://www.en.wampserver.com/

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.