brothercake
01-28-2003, 11:27 AM
I'm using code like this
$dir_handle = opendir($filePath);
while ($file = readdir($dir_handle)) {
if(ereg("\.doc",$file)) {
$mod = getlastmod($file);
$fileAry[] = array($mod,$file);
}
}
closedir($dir_handle);
But the value returned in $mod is not the last modified date, it's today's date ..? Is that because reading the directory counts as "touching" the file, and if so what can I do?
$dir_handle = opendir($filePath);
while ($file = readdir($dir_handle)) {
if(ereg("\.doc",$file)) {
$mod = getlastmod($file);
$fileAry[] = array($mod,$file);
}
}
closedir($dir_handle);
But the value returned in $mod is not the last modified date, it's today's date ..? Is that because reading the directory counts as "touching" the file, and if so what can I do?