I'm opening the files in a directory, and trying to find the most 
recent modification date. The problem is that I'm getting the date 
of 12/31/1969 for all my files, and when I try to print out the modification 

timestamp from filemtime directly I get nothing.

If you look at the code you can see. Nothing is printed out at print 
$fileDate. 
It is a windows NT system could this be the problem. Having troubles 
with the UNIX timestamp?

while (false!=($file = readdir($handle))) { // read all files in dir 
        
        if ($file != "." && $file != "..") { // only if file is not . or .. 
                $fileDate = filemtime($file); // get date from file 
                $newDate = filemtime($newFile); // get date from newFile 

                print $fileDate;
                
                if ($newDate < $fileDate) { // if file is newer 
                        $newFile = $file; // replace newFile with newer file 
                } 
        } 
}







-- 
PHP General 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