I am trying to make a script that will list all files in a directory created (or modified) on the date given in a $_GET request.
I have a script that lists all files and the dates but how.would I be able to 'order' them into a way where I can use my $_GET request. Knowing me it is something really simple, here is what I have already:
<?php putenv("TZ=Europe/London");
if ($handle = opendir('./Images/')) {
while (false !== ($entry = readdir($handle))) {
if ($entry != "." && $entry != "..") {
echo "$entry : " . date ("d/m/y", filemtime($entry))."<br />";
}
}
closedir($handle);
}