• Hi there,
    I am in the process of doing a new site and wondered what you guys do when it comes to using navigation.
    I thought of using Matts PHP menu script and then pulling it in via an include, just in case in the future I need to add extra section. Would this work?
    What do you guys do?
    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • I use header and footer includes for all my pages, and the menu is in the header. So yup, that would work ??

    i use ssi include…

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Website Navigation: Do you use an include?’ is closed to new replies.