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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.