Re: Mktime formatting problems

From: Date: Thu, 11 May 2006 20:44:42 +0000
Subject: Re: Mktime formatting problems
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-236021@lists.php.net to get a copy of this message
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

« previous php.general (#236021) next »