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" <[EMAIL PROTECTED]> ha scritto nel messaggio
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP Windows 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]