Re: filemtime or getlastmod

From: Date: Sun, 14 Jan 2001 18:35:03 +0000
Subject: Re: filemtime or getlastmod
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34485@lists.php.net to get a copy of this message
On Sunday 14 January 2001 17:54, Christian Binder wrote: > The only problem is, that my following script only shows one date (IMO: > of the first value (.)), and not create the date of each file. > // get unix-timestamp form each file in subdirectory > $unixdatum=getlastmod($datei[$i]); Read again through the getlastmod() docs. That function returns the modification time of the *currently executed PHP script*. Use filemtime() instead and it will work -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Install once, run forever. Linux.

« previous php.general (#34485) next »