PHP on IIS. Getting includes to parse PHP...
Posted: Wed Sep 04, 2002 11:35 pm
I don't have particulars right now, but I wanted to ask this question ASAP in hopes of getting an answer sooner than later. I can post particulars (IIS/NT/PHP versions, etc. tomorrow if needed). I know PHP is at least 4.x...
Is there any way to get IIS to execute .php files if they are added via an SSI include statement? Our setup is not doing this.
Here's the quick history. I took over a large intranet running on Netscape Enterprise on NT. No perl, no PHP, nothing but some kludgy javascript. I spent a lot of time at it but finally got PHP running under this system. Not wanting to rename and relink every page to .php extensions, I had (what I thought at the time) a brilliant idea. Using SSI, I could include PHP files even if the html file containing the SSI include was an .htm. I gave the includes .php extensions and IT WORKED! Oh joy! Rapture!
A month later, I find that IT hates NS Enterprise (says it crashes too often) and is switching over to IIS. It's my responsiblity to get PHP running, which I do (just yesterday). I see that php(info) works, but all my SSI-included .php's do not!
Is there any way to get this working? Is there something I missed? Is there any other alternative I can try that would allow me the .php's to run inside .htm's (and I don't think the IT staff would allow IIS to parse every file for php)?
Is there any way to get IIS to execute .php files if they are added via an SSI include statement? Our setup is not doing this.
Here's the quick history. I took over a large intranet running on Netscape Enterprise on NT. No perl, no PHP, nothing but some kludgy javascript. I spent a lot of time at it but finally got PHP running under this system. Not wanting to rename and relink every page to .php extensions, I had (what I thought at the time) a brilliant idea. Using SSI, I could include PHP files even if the html file containing the SSI include was an .htm. I gave the includes .php extensions and IT WORKED! Oh joy! Rapture!
A month later, I find that IT hates NS Enterprise (says it crashes too often) and is switching over to IIS. It's my responsiblity to get PHP running, which I do (just yesterday). I see that php(info) works, but all my SSI-included .php's do not!
Is there any way to get this working? Is there something I missed? Is there any other alternative I can try that would allow me the .php's to run inside .htm's (and I don't think the IT staff would allow IIS to parse every file for php)?