Bug #6767 Updated: filemtime not working

From: Date: Sun, 13 Jan 2002 04:16:21 +0000
Subject: Bug #6767 Updated: filemtime not working
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-76847@lists.php.net to get a copy of this message
ID: 6767 Comment by: ken.gregg@rwre.com Old Reported By: carlos@softsalsa.com Reported By: ken.gregg@rwre.com Status: Closed Bug Type: Filesystem function related Operating System: W98 PHP Version: 4.0.2 New Comment: OS FreeBSD 4.0 php 4.06 This code works fine if you use '.' for the dir. But if you use './somesubdir' filemtime always returns false. Could it be looking for the filename string in the current dir regarless of the filename passed? Previous Comments: ------------------------------------------------------------------------ [2001-01-08 15:48:53] cynic@php.net can you check whether this still errs with 4.0.4 or latest CVS? if so, reopen this bug report. it works for me(TM) with today's CVS mod_php4 on NT5. ------------------------------------------------------------------------ [2000-09-15 01:00:52] carlos@softsalsa.com <? $handle=opendir('.'); while (($file = readdir($handle))!==false) { $filedate = date("d-m-Y H:i:s",filemtime($file)); echo $filedate."<br>"; } closedir($handle); ?> filemtime returns 0 for all files on a directory except for . and .. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=6767&edit=1

« previous php.dev (#76847) next »