RE: [PHP] Location bar
| From: | Jason Murray | Date: | Wed, 29 Nov 2000 23:48:50 +0000 |
| Subject: | RE: [PHP] Location bar | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-27926@lists.php.net to get a copy of this message | ||
> how do i make a location bar so users know were they are at?
Look at $PHP_SELF, and you'll be able to find your parent directories.
Put a file "directoryname" in each directory that contains the
name of the directory in plain English.
Explode $PHP_SELF by "/" and you'll have an array of directories.
For each element in the array, open up its "directoryname" file,
and include it in a "<A HREF='link-to-directory'>directoryname</A>".
Put a "»" between each <A> element you output.
Tada!
Jason