you can just take the 3 file system explained above with header.php, index.php, footer.php.
then - you have 2 ways of dealing with this problem:
1.)
say you want to open a page with your caontach info: contact.php
then contact.php could look like this:
<?php
include "header.php";
?>
my email: xxx@xxx.xxx
<?php
include "footer.php";
?>
and each other php file has to look the same - header - content - footer
2.)
you can always work with the index.php file, selecting the content for the main table with a variable.
for example againa a contact page:
you need the file contact.php looking like this:
my email: xxx@xxx.xxx
and index.php looking like this:
<?php
include "header.php";
if (!$mainPage) {
$mainPage = "default.php";
}
include $mainPage;
include "footer.php";
?>
the link to open the page would look like this then: http://www.yourdomain.com/index.php?mainPage=contact.php
(here i have an empty file defaukt.php for when there is no $mainPage specified)
this 2nd version would be more corresponding to how frames work. you include the content in a main "file set" whereas in version 1 you include the parts that aways stay the same in each seperate file.
i prefer version 1 since it is a lot more flexible and less likely to cause errors.