ID: 6767
Comment by: [EMAIL PROTECTED]
Old Reported By: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

<?
$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


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

Reply via email to