Forum Moderators: phranque
so your header would be something like...
<?php
<html>
<head><title>foo</title>
</head>
<body>
<?php
//header.php
header content goes here
?>
the page code would be as follows.....
<?php
include ("header.php") ;
?>
<html>
standard html page here
</body>
</html>
Just checked with one of my work colleagues that has his site done in PHP where I thought he had all his pages in *.html and you are correct server-side script does require .php! Sorry about that. Do you have access for using .htaccess in that case where each *.php can be disguised as *.html?
Once again sorry (valid lesson learned on assumption)
-gs
However, if you add this line to your .htaccess file, all .html files will be parsed for PHP:
AddType application/x-httpd-php .php .php3 .phtml .html