Partner and Community Forums
SSI include and PHP
Last post Aug 03, 2011 07:09 AM by HCamper
Jan 25, 2009 11:46 AM|TheQIIS|LINK
I have some pages at godaddy (www.godaddy.com) who are working fine with their apache server.I am using this line:
PHPinfo is reporting that PHP is installed properly (I beleive).
The extension of the files that contain the above line of code are all .html. The server on my workstation whre I am testing and developing the site is IIS7 (Home Vista x64 Premium Edition).
Here SSI is enabled for *.shtml. I don't know how they do it @godaddy where I have the "production site" but SSI is working with html files with the above line inserted.
I wouldn't like to change the extesions for all my files so I am looking for a way to use the files as they are. Could you please tell me if I have to change anything in IIS7 to have this working ?
PHP 64bit SSI
Feb 08, 2009 11:18 AM|TheQIIS|LINK
Nobody can answer this ?
Let's rephrase it. What do I need to do in IIS7 to include PHP code (php files) in HTML pages ?
I tried !<--include virtual="Menu/Tree.php"--> but it doens't work. The PHP code is inserted into the page as it is.
The Tree.php file is fine, If I access it directly I get the tree menu I want.
Feb 13, 2009 06:25 PM|pierrejoye|LINK
PHP can work as a preprocessor (it is actually one initially), all you have to do is to define you page as a php page:
<?php include 'Tree.php'; ?>
By the way, you may take a look at the PHP Manual.
Aug 03, 2011 07:09 AM|HCamper|LINK
look at the PHP manual section
The PHP manual includes updated methods and examples.