I know how to read a directory and list the files that are in it. Is there a way to tell when each file I find was last modified?
$dir = "path/to/my/directory/folder";
if ($handle = opendir($dir)) {
///// This is the correct way to loop over the directory.
while (false !== ($file = readdir($handle))) {
$myFiles[] = $file;
echo "<p>$file</p>";
}
}
Thanks for any tips.
JohnC