[thelist] PHP -Self-finding navigational includes
Fred D Yocum
fdy at mcc.org
Thu Jul 28 07:25:40 CDT 2005
Using PHP to create a repeating object like a navigational sidebar with an
include file seems like a good idea. This is trivial to accomplish If all
the paths are either absolute
(http://somewhere.com/thisdirectory/thatfile.html) or everything is at the
same directory level, the links can be hard coded. If they're not, you
need a function/routine that figures out where the page (with the
included navigational side bar) is within the directory structure and
writes the paths accordingly. This is a problem I am sure which has been
solved on numerous occassions -- just not by me. A couple of quick
searches has brought up numbers of articles extolling the virtues of
putting repeated navigational items that don't address this issue. Can
anyone point me in the direction of an efficient way of doing this?
F D Yocum
More information about the thelist
mailing list