You need to have an array or db with file and description
in ca you use array :
$location = Array(
'/index.php' => 'HOME',
'/prod_info.php' => 'Product Information',
..etc,,,,
);
and then
if(isset($location[$PHP_SELF]))
echo $location[$PHP_SELF];
and so on ...
note: this is just a quick and dirty idea on how to do that, with a little
bit of logic you can write a very sweet function with does what you need.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-----Original Message-----
From: Brandon Feldhahn [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 10:27 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Location
Im making a website and i want the viewer to know were he of she is,
what do i need to do to make a location bar (home > serverices ect...)
with the $PHP_SELF command, i wasent able to figure it out so i am
asking assistance from another person.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]