Posted by slave4code on 12/17/21 11:56
I hope it will help you :) ->
http://www.php.net/manual/en/function.filemtime.php
Now just write that simple algorythm : )
This is how to get file motification date
<?php
// outputs e.g. somefile.txt was last modified: December 29 2002
22:16:23.
$filename = 'somefile.txt';
if (file_exists($filename)) {
echo "$filename was last modified: " . date ("F d Y H:i:s.",
filemtime($filename));
}
?>
[Back to original message]
|