Re: site last updated

From: Date: Mon, 05 Nov 2001 09:34:15 +0000
Subject: Re: site last updated
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-73459@lists.php.net to get a copy of this message
you are absolutely right: i need to know the modification date of the entire site, not of each of its files separately (i am aware of getlastmod() and filemtime()). your solution sounds interesting, but how do you update the contents of the database containing the modification dates of each file? (one other, non-php, approach i can think of: let the server write the modification date of the webroot directory into a text file -with a cron job- and then read that out with php. is that what php.net does?) > 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 ...

« previous php.general (#73459) next »