Ryan A wrote:
echo $the_files[$i] . date("F d Y H:i:s.",
filectime($directory_with_files.$the_files[$i]));
The next step is, I want to only echo the files that
are over x minutes (or x hours) old, ignore anything
below, I am using mktime() along with date() to format
it accordingly...but am unable to do so.
$threshold = strtotime('-10 minutes');
if (filectime($directory_with_files.$the_files[$i]) < $threshold)
echo that snippet above
Something like that should do it, except with the looping after the
threshold is set.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php