WordPress.org

Ready to get started?Download WordPress

Forums

Website Navigation: Do you use an include? (6 posts)

  1. Anonymous
    Unregistered
    Posted 10 years ago #

    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

  2. Skybly
    Member
    Posted 10 years ago #

    I use header and footer includes for all my pages, and the menu is in the header. So yup, that would work :)

  3. OperaManiac
    Member
    Posted 10 years ago #

    i use ssi include...

  4. Anonymous
    Unregistered
    Posted 10 years ago #

    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

  5. OperaManiac
    Member
    Posted 10 years ago #

    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... :)

  6. phidauex
    Member
    Posted 10 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.