Re: This is a tricky one

From: Date: Thu, 13 Jan 2005 19:40:10 +0000
Subject: Re: This is a tricky one
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-25316@lists.php.net to get a copy of this message
Louis, Try using $_SERVER['REQUEST_URI']. That will tell you the name of the page requested. Randy Clamons Systems Programming Astro-auction.com > ------------Original Message------------ > From: Louis Young <louis@kwikpay.co.za> > To: php-windows@lists.php.net, php-gurus@yahoogroups.com > Date: Thu, Jan-13-2005 11:44 AM > Subject: [PHP-WIN] This is a tricky one > > Hi > > I have a header which I just include every time from all my pages, but > the headers caption needs to change according to the page which has > been > loaded. I've tried global variables, but as soon as I jump into a > different session they seem to lose their values. So, what I did was > created a table in the database with two fields pagename and header. > Pagename is the name of the page and header is the header which I want > to display, then I can send the page name as a parameter to a query to > get the header. > > The only problem now is the header doesn't know what the name of the > page is that is loading underneath it. At first I thought I could use > HTTP_REFERER, but this would only be true if the page is the loader of > the header, which is not always the case. > > Any help will be appreciated. > > Cheers > Louis > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.windows (#25316) next »