Would there be a way of adding one script to a common footer, which in
included in any file, and this script can check any file on the server, and
echo the "last updated" string to a file. Thus, you don't need to add the
script to the file, the footer automatically echos that info to any file on
the server. Would that be possible? Cause then you could simply add pages,
and the whole footer could be echoed to it.

Rudi Ahlers
UNIX Specialist and Web Developer
Bonzai Web Design - http://www.bonzai.org.za
Cell: 082 926 1689

----- Original Message -----
From: "Chip" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 04, 2001 7:32 AM
Subject: Re: [PHP] site last updated


> On Saturday 03 November 2001 21:12, Steve Werby wrote:
> > "Ryan Christensen" <[EMAIL PROTECTED]> wrote:
> > > You can do this in a per-page basis w/:
> > >
> > > $modified = stat("yourfile.html");
> > > echo date("l, F dS",$modified[9]);
> >
> > Also see getlastmod() and filemtime().
>
> I am interested in this also. I understand the way it is working here, but
> what about using a common footer.inc which contains the last modified
script,
> to show the last modified date of another inc file, body.inc, inside
page.php?
> This would have to know the body.inc file name loaded into page.php I
guess.
> That'd sure be easier than adding the script to several hundred seperate
> pages.
>
> --
> Chip W.
>
> --
> 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]
>
>


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