I would do something like this...
code:
<header>
<?php
if (!$a) { $a = "home"; }
include $a.".txt";
?>
<footer>
then have a file for each page, so index.php?a=links would load links.txt in the middle of the page. This way is better i think because you can add new pages without changing the main file.