I am trying to get the file modified time on all files in a directory and it keeps getting December 31 1969 as the last modification time...
Here's the code:
I would appreciate any help/suggestions/tips you can offer...
Here's the code:
Code:
if (is_dir($dir))
{
if ($dh = opendir($dir))
{
while (($pictname = readdir($dh)) !== false)
{
if (($pictname != ".") && ($pictname != "..") && ($pictname != "_vti_cnf"))
{
$count++;
$PicList[$count] = $strPicPath."/".$pictname;
$PicTime[$count] = date("F d Y", filemtime($pictname));
}
}
closedir($dh);
$intNumPicts = $count;
}
}