Forum Moderators: mack
What is the best way to handle frequently occurring code like a site menu and/or div structure? Do you use SSI to accomplish this, PHP includes or is there some other way to handle this?
Or do you just plain C/P the HTML into a new document?
What is the most common, effective and best practice?
I use includes.
If you look at your site you should find one or two areas that appear on all pages: menu, header, footer, etc
I code them separately and include them.
I would warn against C/P, since a simple change on the menu, for instance, would then have to be changed on every page individually.... argh!