PHP filectime() Function
Complete PHP Filesystem Reference Manual
Definition and Usage
The filectime() function returns the last change time of a specified file.
This function checks both the file's regular modifications and inode changes. Inode changes refer to modifications of permissions, owner, user group, or other metadata.
Returns the last change time of the file as a Unix timestamp on success, or FALSE on failure.
Syntax
filectime(filename)
| Parameters | Description |
|---|---|
| filename | Required. Specifies the file to check. |
Tips and Notes
**Note:** The results of this function are cached. Use clearstatcache() to clear the cache.
**Tip:** Use filemtime() to return the time when the file contents were last modified.
Example
"; echo "Last change: ".date("F d Y H:i:s.",filectime("test.txt")); ?>The code above will output:
1138609592
Last change: January 30 2006 09:26:32.
Complete PHP Filesystem Reference Manual