Page 1 of 1

Calling PHP through SSI on Windows IIS Server

Posted: Tue Aug 02, 2005 9:58 am
by tulsabobt
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

Posted: Tue Aug 02, 2005 10:26 am
by theda
You can't run PHP on a .html file. I believe it has to be .php.

Posted: Tue Aug 02, 2005 10:35 am
by tulsabobt
Well I am not running php on a html file, I am callign it dynamically and it works on 2 dozen similar instances on my Linux/Apache server. I am just trying to figure out how to make a Windows server execute the php fiel when called by SSI.

Bob