YouTip LogoYouTip

Func Filesystem Filemtime

# PHP filemtime() Function * * Complete PHP Filesystem Reference Manual](#) * * * ## Definition and Usage The filemtime() function returns the last modification time of the file content. If successful, this function returns the last modification time of the file content as a Unix timestamp. If it fails, it returns FALSE. ## Syntax filemtime(filename) | Parameter | Description | | :--- | :--- | | filename | Required. Specifies the file to check. | * * * ## Tips and Notes **Note:** The result of this function is cached. Use clearstatcache() to clear the cache. * * * ## Example <?php echo filemtime("test.txt"); echo "
"; echo "Last modified: ".date("F d Y H:i:s.",filemtime("test.txt")); ?> The code above will output: 1139919766 Last modified: February 14 2006 13:22:46. * * Complete PHP Filesystem Reference Manual](#)
← Func Filesystem FileownerFunc Filesystem Chown β†’