<?php
//this is the master page
include(\"headers.html\"); //optional
include(\"page1.html\");
include(\"footers.html\"); //optional
?>
If you have any <?php ?> tags in those HTML files, they WILL get parsed if you include them like this. However, this means that you\'ll either have to create a separate PHP file for every HTML file, or that you\'ll have to complicate things by having a master PHP controller file that serves up the HTML files specified in the url, like
http://www.foo.com/serve.php?page=page1.html
.
You don\'t have to rename all your files to PHP, however, this would by far be the easiest way. Why don\'t you want to do it? All it would take would be a batch renaming and then a batch find-and-replace for \".html\" to \".php\".
A shell script could easily do this for you, and I believe something like it already comes with the PHP distribution (at least for linux), called extchg.sh.