RE: [PHP] Location

From: Date: Sat, 24 Feb 2001 06:16:29 +0000
Subject: RE: [PHP] Location
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41452@lists.php.net to get a copy of this message
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) maxim@phpbeginner.com www.phpbeginner.com -----Original Message----- From: Brandon Feldhahn [mailto:BrandonFeldhahn@earthlink.net] Sent: Friday, February 23, 2001 10:27 AM To: php-general@lists.php.net 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: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#41452) next »