Calling PHP through SSI on Windows IIS Server
Posted: Tue Aug 02, 2005 9:58 am
Hello,
On a Unix box I have some .shtml (SSI) pages that call a PHP script via SSI. before anyone asks the files MUST be .shtml (not .php) because of the site creation tool being used.
1. The SSI page has a tag that says <!--#include virtual="/poll/poll.php"-->
2. The poll.php file is made up of it's own include, <?php require '/home/kxoj/public_html/sympoll/booth.php';
display_booth(5); ?>
3. The result is an executed polling app on the shtml page, which is what we want!
HOWEVER,
When attempting to do this on a Windows IIS server, the contents of the actual script are displayed on the shtml page, i.e. the php page does not execute as it does on the unix box.
Does anyone know how to set up a Windows server to prioritize or otherwise make PHP execute pages that are embedded into other pages?
As you can see I am only a designer, not a developer and this is a little over my head.
Thanks!
Bob
On a Unix box I have some .shtml (SSI) pages that call a PHP script via SSI. before anyone asks the files MUST be .shtml (not .php) because of the site creation tool being used.
1. The SSI page has a tag that says <!--#include virtual="/poll/poll.php"-->
2. The poll.php file is made up of it's own include, <?php require '/home/kxoj/public_html/sympoll/booth.php';
display_booth(5); ?>
3. The result is an executed polling app on the shtml page, which is what we want!
HOWEVER,
When attempting to do this on a Windows IIS server, the contents of the actual script are displayed on the shtml page, i.e. the php page does not execute as it does on the unix box.
Does anyone know how to set up a Windows server to prioritize or otherwise make PHP execute pages that are embedded into other pages?
As you can see I am only a designer, not a developer and this is a little over my head.
Thanks!
Bob