includes are the way .... and while you are at it you can do a header , statistics section, navigation section, anything you want. I built a whole site this way before C.M.S became popular and i had an includes file that i included in every page of the site. in that includes file, all the includes were defined like
define("FOOTER", "footer.inc.php");
define("HEADER", "header.inc.php");
define("WHATEVER", "section-of-code.inc.php");
so anytime i wanted a section on the page I could just write
include FOOTER;
include HEADER;
include WHATEVER;
meant i could make a change to one of the .inc.php pages and have it duplicate accross the site, and of course you could stick in a section of code, or move it etc quite easily by just moving 2 words and a semicolon |