Re: Php a datum aktualizacie

From: Ing. Vlastimil Pospíchal <vpospichal (zavinac)>
Date: 18. 09. 2004, 12:27 CEST
On Sat, Sep 18, 2004 at 12:16:27 +0200, Kit wrote:
> > Pouzivam k tomu funkci FileATime(). Nejsem si jistej ze je to ta spravna,
> > ale funguje.
> > http://cz.php.net/manual/cs/function.fileatime.php
> > -pp21-
> 
> Spíš bych se přimlouval za funkci FileMTime(), protože určitě chceš čas
> poslední modifikace. FileATime() může fungovat také, ale je to nestandardní
> chování. Správci to tak často nastavují, aby snížili zatížení systému.
> Obě funkce mohou dávat stejné hodnoty, ale sémanticky správně je FileMTime().
> Kit

Malý doplněk z http://cz.php.net/manual/cs/function.filemtime.php :

To get the last modification time of a directory, you can use this:

  $getLastModDir = filemtime("/path/to/directory/.");

This comes in handy when you want just one 'last updated' message on the
frontpage of your website and still taking all files of your website into
account.

Kit
-- 
Ing. Vlastimil Pospíchal
http://www.hoteldrnholec.cz
Received on Sat, 18 Sep 2004 12:27:42 +0200

This archive was generated by hypermail 2.1.8 : 18. 09. 2004, 15:23 CEST