View Single Post

  #4 (permalink)  
Old 31-03-2008, 09:41 PM
byronyasgur byronyasgur is offline
Coder
 
Join Date: Mar 2008
Posts: 81
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
byronyasgur will become famous soon enough
Default

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
__________________
RainRain Web Design - OneWeekofDays
Reply With Quote