filemtime(filename) - will give us a Unix time stamp. So
$file_1_timestamp = filemtime($path_to_file1);
$file_2_timestamp = filemtime($path_to_file2);
If ( $file_1_timestamp > $file_2_timestamp-120 && $file_1_timestamp < $file_2_timestamp+120 ) {
TRUE
}
No comments:
Post a Comment