Forum Moderators: open

Message Too Old, No Replies

Parse .html files for ASP and/or PHP Code on IIS?

Can one do this in a shared hosting environment?

         

physics

12:25 am on Jul 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



With Apache one can add the AddType line to .htaccess and parse .html files for .php code. I'd like to do this on a IIS server and parse .html file for ASP and/or PHP code (one or the other or both). Is there a way to do this in a shared hosting environment (easily), like there is with Apache. Or does the base IIS config have to be changed? This has been discussed before obviously but I can't find any reference to whether or not it's possible to do this in a shared environment or on a site-by-site or directory-by-directory basis.

mattglet

2:07 am on Jul 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This has to be done at the IIS level. Most shared hosting companies should allow this change to be made on an individual site.

jdancing

1:17 pm on Jul 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I recently asked my host (shared IIS account) if they could do something similar to what you need. As you can see below I had no luck.

Question: Can you enable parsing of .html for PHP code on my
site?

Answer: What you're asking about is an IIS mapping that would send .html files to php. Unfortunately this isn't something that we can do for you, as it can cause serious issues in troubleshooting problems with your site. Please contact us again if you have any further questions.

So I hit I brick wall on this one.