Jump to content

How to enable php in static html files


Recommended Posts

Hello, I'm using Windows Vista Home Premium, IIS7, and PHP5.

 

Searching the internet it looks like I need to add the mime type.  Does anyone know how to make this work in IIS7?  I go to MIME types and try to add php, but is there anything simpler, closer to the apache add type?

 

Whatever I add, I can't seem to get the webserver to parse the php tags.

 

 

 

Appreciated,

 

john

Link to comment
https://forums.phpfreaks.com/topic/55674-how-to-enable-php-in-static-html-files/
Share on other sites

You can mark this solved... sort of.

 

I ditched IIS figuring it was a lot less stress to just run apache.  I'm a .Net developer for a living so I was hoping to not have to switch back and forth.

 

I ran apache, and was still having the .html files not rendering the php.  Most sites have the add type .php part, but not :

AddType application/x-httpd-php .php .html

Just wanted to throw this out here because I saw several posts about the same topic and never a definative answer at the end.

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.