It turns out it's really easy to get the the last modified date of a folder/directory using PHP. You use the
filemtime() function. It returns a timestamp for us so we would do something like:
$lastModifed = filemtime($dir);
print "Last modified on ".date("Y-m-d H:i:s", $lastModifed );
No comments:
Post a Comment