[PHP] site last updated

2001-11-03 Thread oliver walkhoff

hi all

i am looking for a simple way to find (and then display) the date of the
last change to an entire web site. an example is in the footer on
php.net:

"Last updated: Sat Nov 3 13:10:40 2001 EST"

thanks for your help
oliver walkhoff


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




RE: [PHP] site last updated

2001-11-03 Thread Ryan Christensen

You can do this in a per-page basis w/:

$modified = stat("yourfile.html"); 
echo date("l, F dS",$modified[9]);

(As with most things ;).. this can be found in the manual. Check @
php.net/stat for more info..

%Ryan

> -Original Message-
> From: oliver walkhoff [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, November 03, 2001 10:26 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] site last updated
> 
> 
> hi all
> 
> i am looking for a simple way to find (and then display) the 
> date of the last change to an entire web site. an example is 
> in the footer on
> php.net:
> 
> "Last updated: Sat Nov 3 13:10:40 2001 EST"
> 
> thanks for your help
> oliver walkhoff
> 
> 
> -- 
> 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]




Re: [PHP] site last updated

2001-11-03 Thread Steve Werby

"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().

-- 
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/


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




Re: [PHP] site last updated

2001-11-03 Thread Chip

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]




Re: [PHP] site last updated

2001-11-03 Thread speedboy

last modified 

^ I put that on the bottom of every page on some sites I make.


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




Re: [PHP] site last updated

2001-11-04 Thread Rudi Ahlers

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]




RE: [PHP] site last updated

2001-11-04 Thread ArsenKirillov

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]