I have a variable that is a date stamp that is basically the modification date of a file:
$file_date = date("mdY H:i:s", filemtime("$dir/$file"));
the above will be in a loop, that checks an entire directory. I need to write another variable that would represent 15 minutes ago that I can compare with the list of files. I am trying to echo all the files that have a file mod date >= fifteen minutes ago so it would look like this
$fifteen_minutes_ago = (now - 15 minutes)
if($file_date = date("mdY H:i:s", filemtime("$dir/$file")) >= $fifteen_minutes_ago;
obviously I am needing the code that should go (now - 15 minutes) that could be compared to the $file_date variable to see if $file_date should be listed.
Thanks for your time!