if you're asking on how to show where you are, then this is what you could
do:

Create an array of page names:

ie:

$page_name = Array(

        '/' => 'Home',
        '/page1' => 'Page One'

);

... and so on....

Then just do 

echo $page_name[strtolower($PHP_SELF)];

This is only appropriate for small static sites, and is not really a
solution. try to extend this idea, with maybe use of databases and go ahead.

Also, look for such scripts. Tons of code was written already and some
module like this, I think, you can easily find.


Cheers,
Maxim Maletsky

www.PHPBeginner.com



-----Original Message-----
From: Wolfgang Schneider [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 3:35 PM
To: php-general
Subject: [PHP] "location bar"


Hi everyone,

I am somewhat new at the use of php and would appreciate if someone
could help me with a question re "location bar"

How can a location bar such as the sample below be generated in php to
be displayed in web pages ...

        Location : home:/category:sub_1:/page title

Is there a specific setup needed in terms of the directory structure on
the server? Or will this only function with database type website?

Thanks in advance for any input and helpful ideas  ...
God bless you with His grace and peace 
Wolfgang 

Looking for Biblical information? COME AND SEE! 
-- ONLINE Courses: http://classes.bibelcenter.de ... NEW!
-- BibelCenter: http://www.bibelcenter.de 
-- Bookstore: http://www.worthy.net/BibelCenter/ 



-- 
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]

Reply via email to