From:             [EMAIL PROTECTED]
Operating system: WINNT4
PHP version:      4.0.4
PHP Bug Type:     Filesystem function related
Bug description:  Wrong File Created Date and Wrong Filesize

<?php
   $fhandle = opendir(".");
        
   while (false!=($file = readdir($fhandle))) 
   { 
      if ($file != "." && $file != "..") 
      {         
         if (!(is_dir($file)))
         {
              $fdata = filemtime($file);
              $fdata = date("d/m/Y",$fdata);
              $fsize = filesize($file);
    
              printf("%s %s %d\n", $file, $fdata, $fsize);
 
        }

        clearstatcache();
        closedir($fhandle);
      }
   }
?>


-- 
Edit Bug report at: http://bugs.php.net/?id=9921&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