Designing a content delivery system using PHP
<p>Currently, I have a system that actively generates the pages on my site using PHP, more or less like so:</p>

<p>index.php ------include(query.php);-----> query.php grabs content from a file that corresponds to index.php</p>

<p>Query.php simply assembles the page from the mentioned index.php file and from header, footer, and navigation files.</p>

<p>The index.php file acts as a sort of proxy or label if you will so that when users visit the site, instead of having urls like "query.php?page=index" they have real pages.</p>

<p>The issue of course is that this is a bit convoluted. For each page of the site, I need 2 files: the "wrapper" file (such as index.php) and a content file to which it corresponds. I'd like to only be using a single file. The issue is that <strong>the single file should only contain the content of the page</strong> - not structure, header, footer etc.</p>

<p>So, what I'd like to be able to do is to be able to have index.php contain ONLYand a paragraph for example. When it is accessed, somehow PHP kicks in and applies a template and the header and footer.</p>

<p>Is PHP too high level a language to be able to do this? I know it is often done with Tomcat and java servlets, but I thought it would be cool to do with PHP.</p>

<p>EDIT: Important point, I don't want to use GET variables.</p>
