Re: site last updated
        73374 by: Steve Werby
        73376 by: Chip
        73377 by: speedboy
        73385 by: Rudi Ahlers
----

I think that all is partially answers on question that have no answer at all
!

Question was : ... SITE last update - not html  file inside site but
WHOLE__site__.

I did this way :

1.Database with all articles on site and it's dates of its last modify (i
use text format)
2.
        array_multisort
        (
         $this->a_tmst , SORT_DESC ,
         $this->a_datestr ,

3. echo date_datestr[1].
, so i do in my news.php page (that one automatically show new articles on
my site).
And this is really date of SITE last modify ...





> -----Original Message-----
> From: Rudi Ahlers [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, November 04, 2001 12:13 PM
> To: Chip; [EMAIL PROTECTED]
> Subject: Re: [PHP] site last updated
>
>
> 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