Thanks, Weedpacket... 🙂
I was playing with fileatime and filemtime last night to see if any of those will work for me, but both gave me current date, so I just left the last one I tried, fileatime and went to sleep...
I just got up and tried both again and filemtime works... Lovely... 🙂
While we are in the subject, I'd like to ask one more question... 🙂
I have two date formats...
$now = date("Ymd His");
$mTime = date("Ymd His", filemtime($f));
$diff = $now - $mTime;
echo($now . " : " . $mTime . " : " . $diff);
and here is some test result for the files...
20050926 063408 : 20050120 163922 : 806
20050926 063408 : 20050120 164013 : 806
20050926 063408 : 20050925 195317 : 1
20050926 063408 : 20050925 212655 : 1
20050926 063408 : 20050925 195338 : 1
20050926 063408 : 20050925 205533 : 1
20050926 063408 : 20050925 205547 : 1
Can you tell me what that $diff is supposed to be??? I am trying to get $diff in date format, but it looks like PHP is doing minus with the integer values...
Ultimately, I am wanting to get to use $diff to see if the $mTime is one hour old or not so that I can delete the file that is more than one hour old...
Thanks... 🙂