Re: Getting the URL of the parent script/page in an included script

From: Date: Thu, 17 May 2001 10:26:04 +0000
Subject: Re: Getting the URL of the parent script/page in an included script
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-7666@lists.php.net to get a copy of this message
I've used this script to include modify date and copyright notes in every page. It grab the informations of the page where was included... i think you can do something similar for other varibles than the last modification date. Greets, Alessio. note.php.inc <? $file=basename($PHP_SELF); $modifica=getdate(fileatime($file)); $modifica=$modifica["mday"]."/".$modifica["month"]."/".$modifica["year"]." ".$modifica["hours"].":".$modifica["minutes"].".".$modifica["seconds"]; echo "<!-- File modificato il $modifica -->\n"; echo "<!-- Tutti i diritti riservati - DCS -->\n"; ?> "Timo Würsch" <t.wuersch@arpanet.ch> ha scritto nel messaggio news:3B03A4FA.20F11743@arpanet.ch... > I've got a bit of a problem here: I've got a php script which is > included and will thus be executed in every page on my web site. How can > i change the behaviour of this included script depending on the parent > page's URL? Many thanx > > Timo > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#7666) next »