Use PHP to create a menu?
<p>I have a simple site with no database. Each page is in the ROOT DIRECTORY of the site and has page values set as follows:</p>

<pre><code>&lt;?php    
$page_title = "My Page Title";
$description = "Page Description";
$current_page = "home";
//Load header  
include_once('includes/header.php');
?&gt;
</code></pre>

<p>How can I use PHP to generate a list of links to each page (for a navigation menu) using one of the values as the anchor text and add a class of active to the current page?</p>

<p>As the pages are in the root directory with other files, there needs to be a way to specify which pages appear in the menu and which don't and exclude other files eg robots.txt .htaccess</p>

<p>Any help much appreciated</p>
