On my site I have a big file called functions.php, it contains the following:
<?php
function pageHeader($title) {
echo "\n";
echo "<head>\n";
echo "<title>" . $title . "</title>\n";
echo "</head>\n";
echo "<body>\n";
}
function pageFooter() {
echo "</body>\n";
echo "<\html>\n";
}
Then on each of my pages, I do this:
<?php
include("/functions.php");
pageHeader("Jason's Page");
echo "this is my page\n";
pageFooter();
?>
And you can add a lot more to the functions too, like your menu bar... etc..
Hope this helps, feel free to ask me again 🙂
Jason Rottman
www.stardefenders.com
Webmaster
Project Manager