I have an html file on my website that serves as a template and pulls another html file using SSI ("include virtual") for the content of the page: http://www.menthapiperta.com/main.shtml
I'd like to change this to an html file that pulls a php file, but I'm not sure how to go about this, as a php file would need to be run and then the text posted.
[I'm new to SSI and PHP, but I checked with a comp sci major and they were little help.]
Well this may or may not help:
If you want to include a php page with html you need the extension .php
The command for inclusion is:
<? include('yourpage.php'); ?>
got some advice elsewhere:
the template MUST be a .php document and the include statement is
<?php include ('directory/filename.php'); ?> (minus the )
Thanks, Bob.
You could configure your server to parse .html files as PHP script, but that of course would lead to a lot of superfluous overhead if you have many .html files without PHP script.