RE: [PHP] site last updated
| From: | ArsenKirillov | Date: | Sun, 04 Nov 2001 23:05:52 +0000 |
| Subject: | RE: [PHP] site last updated | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73423@lists.php.net to get a copy of this message | ||
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:kopspier@bigfoot.com]
> Sent: Sunday, November 04, 2001 12:13 PM
> To: Chip; php-general@lists.php.net
> 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" <chip@wiegand.org>
> To: <php-general@lists.php.net>
> 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" <ryan@olypen.com> 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: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
>
>