I use header and footer includes for all my pages, and the menu is in the header. So yup, that would work 🙂
Thread Starter
Anonymous
So with includes in PHP. What is the best to use for path:
This:
<? include('../inc/clients_inc.html'); ?>
Or this:
<? include('/home/public_html/clients/ews211/inc/clients_inc.html'); ?>
The second makes more sense to me if you create folders for testing and don’t want to keep changing the path. What say you?
Thanks
ouch, i now remember the newer pages which are complete php files are using includes as someone told me that it is better than ssi for the server load. i was wrong when i wrote abt ssi. ssi i use in static html files which no longer exists… 🙂
I used to use SSI, then when I wanted more functions than SSI could provide I switched to PHP, but to avoid breaking links I just changed the handling of .shtml to PHP instead of the server parsing engine, so my pages are still .shtml, even though they are PHP.
But seriously, it is a good idea to use includes for header/menu/footer information, especially if you have static pages, or semi static pages, or think that maybe someday you might have those things. Like using a linked CSS file, it is nice to be able to make a single change and have it affect an entire site.
peace,
sam