View Single Post
Old 09-10-2007, 10:52 AM   #3 (permalink)
fjpoblam
Senior Googler
 
fjpoblam's Avatar
 
Join Date: Feb 2007
Location: Santa Fe, NM
Posts: 144
Thanks: 0
Thanked 8 Times in 8 Posts
fjpoblam is on a distinguished road
A tempting idea, but...

...yes, I had the same temptation, early in my large website. I noticed, as you are probably noticing, that all the pages have roughly the same header and footer. You can do it easily doing a PHP self-file or a javascript-write imbedded in the "head" and "tail" of each one.

But then, the question pops up, are you doing it for YOUR ease of maintenance? You should, in the end, consider, your visitor's ease of viewing, and bite the bullet, and place the same ol' header and footer, hand-coded or copied and pasted, into each file. Use lots of CSS and place that CSS in one shared external file. It'll speed up the load for each page, in the long run.
fjpoblam is offline   Reply With Quote