The filectime() function returns the last time the specified file was changed, including changes to permissions, owner, group or other metadata.
PHP filectime() Function has the following syntax.
|filename||Required.||File to check|
The result of this function are cached. Use clearstatcache() to clear the cache.
Use the filemtime() function to return the last time the file content was changed.
This function returns the last change time as a Unix timestamp on success, FALSE on failure.
Get the last change time for a file
<?php echo filectime("test.txt"); echo "\n"; echo "Last change: ".date("F d Y H:i:s.",filectime("test.txt")); ?>
The code above generates the following result.