Definition and usage
The Filemtime () function returns the last modified time of the file's contents.
If successful, the time is returned in the form of a Unix timestamp. If it fails, it returns false.
Grammar
Filemtime (filename)
Parameters
Describe
FileName is required. Specifies the documents to be inspected.
Description
This function returns the last time the data block in the file was written, that is, the time when the contents of the file were last modified.
Hints and Notes
Hint: The result of this function will be cached. Please use Clearstatcache () to clear the cache.
Example
Echo filemtime ("test.txt");
echo "Last modified:". Date ("F D Y h:i:s.", Filemtime ("test.txt"));
?>
Output:
1139919766
Last Modified:february 14 2006 13:22:46.
http://www.bkjia.com/PHPjc/818744.html www.bkjia.com true http://www.bkjia.com/PHPjc/818744.html techarticle the definition and usage of the Filemtime () function returns the last modified time of the file contents. If successful, the time is returned in the form of a Unix timestamp. If it fails, it returns false. Grammar Filemtim ...