Calling PHP through SSI on Windows IIS Server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tulsabobt
Forum Newbie
Posts: 2
Joined: Tue Aug 02, 2005 9:48 am

Calling PHP through SSI on Windows IIS Server

Post 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
theda
Forum Contributor
Posts: 332
Joined: Sat Feb 19, 2005 8:35 am
Location: USA

Post by theda »

You can't run PHP on a .html file. I believe it has to be .php.
tulsabobt
Forum Newbie
Posts: 2
Joined: Tue Aug 02, 2005 9:48 am

Post 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
Post Reply