Well, David, when you have time can you go through my code and put it in the form so I can use it, because the way I did it was not even close to working.
Here is the code I tried.
index.php:
<?php
function callback($buffer)
{
// Replace all occurences of "{path}" with the name of the subdirectory where the article is
return (str_replace("{articles}", 'pages/' . $_SERVER['QUERY_STRING'], $buffer));
}
// Start cacheing
ob_start("callback");
// Include file
include 'header.html';
include 'pages' . $_SERVER['QUERY_STRING'] .'test.html';
include 'footer.html';
// Finish cacheing, run the callback function and send to browser
ob_end_flush();
?>
header.html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<LINK REL=stylesheet HREF="main.css" TYPE="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Phenom Gaming</title>
<script src="http://www.statsmachine.com/cgi-bin/counter.cgi?707|70792"></script>
</head>
<body>
<table width="100%" border="1" cellspacing="00" cellpadding="00">
<tr>
<td scope="col" width="100%" colspan=2 background="imgtopBG.gif">
<p align="right"><img src="imgtopLogo.gif"></p>
<p>
<CENTER>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="150" height="20">
<param name="BGCOLOR" value="">
<param name="movie" value="button1.swf">
<param name="quality" value="high">
<embed src="button1.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="150" height="20" ></embed>
</object>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="150" height="20">
<param name="BGCOLOR" value="">
<param name="movie" value="button2.swf">
<param name="quality" value="high">
<embed src="button2.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="150" height="20" ></embed>
</object>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="150" height="20">
<param name="BGCOLOR" value="">
<param name="movie" value="button4.swf">
<param name="quality" value="high">
<embed src="button4.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="150" height="20" ></embed>
</object>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="150" height="20">
<param name="BGCOLOR" value="">
<param name="movie" value="button3.swf">
<param name="quality" value="high">
<embed src="button3.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="150" height="20" ></embed>
</object>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="150" height="20">
<param name="BGCOLOR" value="">
<param name="movie" value="button5.swf">
<param name="quality" value="high">
<embed src="button5.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="150" height="20" ></embed>
</object>
</CENTER>
</p>
</td>
</tr>
<tr>
<td valign="top" align="left" width="25%">
<br>
<table cellpadding=0 cellspacing=0 border=0 width="100%" height=150>
<tr>
<td class="header" align="left" valign="top" height=25 width=100% background="imgsideHead1.gif">
<center>Recent News</center>
</td>
</tr>
<tr>
<td class="main" align="left" valign="top" height=125 width="100%">
<br>
<b>May 30, 2004</b> - Site Launched
</td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 border=0 width="100%" height=150>
<tr>
<td class="header" align="left" valign="top" height=25 width="100%" background="imgsideHead1.gif">
<center>Visitors</center>
</td>
</tr>
<tr>
<td class="main" align="left" valign="top" height=125 width="100%">
<CENTER>You are the <b>
<script type="text/javascript"><!--
mycount = mycount + 1;
document.write(mycount);
// --></script>th</b> vistor to the site.</CENTER>
</td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 border=0 width="100%" height=150>
<tr>
<td class="header" align="left" valign="top" height=25 width="100%" background="imgsideHead1.gif">
<center>Sponsors</center>
</td>
</tr>
<tr>
<td class="main" align="left" valign="top" height=125 width="100%">
<br>
Carl & Evelyn Hulbert<br>
Google<br>
<center>
<script type="text/javascript"><!--
google_ad_client = "pub-8763500483627717";
google_ad_width = 180;
google_ad_height = 150;
google_ad_format = "180x150_as";
google_ad_channel ="";
google_ad_type = "text_image";
google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center><br>
<center>Become a sponsor, <a href="sponsor.html">Join Today</a></center>
</td>
</tr>
</table>
</td>
<td valign="top" align="left" width="75%">
<br>
<center>
<table cellpadding=10 cellspacing=0 border=.5 width="80%">
<tr>
<td class="contenth" align="left" valign="top" height=25 width="100%" background="imgsideHead1.gif">
<center>Introduction</center>
</td>
</tr>
<tr>
<td class="main" align="left" valign="top" height=175 width="100%">
<p><br>
<font class="contentm">
footer.html:
</font></p>
</td>
</tr>
</table>
</body>
</html>
test.html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
TEST
</body>
</html>
There's no problem so large it can't be solved by killing the user off, deleting their files, closing their account and reporting their REAL earnings to the IRS.