The filectime() function returns the last modification time of the specified file.
This function will check the daily modification of the file and the inode modification. Inode modification refers to: modification of permissions, modification of owner, modification of user group or modification of other metadata.
If successful, the function returns the last modification time of the file as a Unix timestamp. If it fails, returns FALSE.
filectime(filename)
parameter | describe |
---|---|
filename | Required. Specifies the documents to be checked. |
Note: The results of this function will be cached. Please use clearstatcache() to clear the cache.
Tip: Please use the filemtime() function to return the time when the file contents were last modified.
<?phpecho filectime("test.txt");echo "<br />";echo "Last change: ".date("F d YH:i:s.",filectime("test.txt")); ?>
The above code will output:
1138609592Last change: January 30 2006 09:26:32.