How can I read a directory into an array and have the files in date order?
I have it structured like this so far:
while (false !== ($file = readdir($dir)))
{
$filename = $image_folder.$file;
if(is_file($filename))
{
$images[] = $file;
$imageCount++;
}
}
Any ideas?
Thanks
Alfie.