I've searched forums and I've discovered that if I want to sort the files I have in a folder by date modified the I will need an array. That makes sense. How to do it, doesn't. Will the array change the modification date when it uses the file? Here is the code I have to pull the name - date:
while (($file = readdir($handle))!==false)
$file_list .= $file . " - " . date("F d Y .",filectime("./content/uploaded/" .$file));}
How do I add an array to sort without screwing up my code?