PHP filemtime-Get File modification time
Filemtime
(PHP 4, PHP 5)
Filemtime-Get File modification time
Describe
International Filemtime (string $ file name)
When this function returns, the file of the data block is written, which is the content file change at that time.
Parameters
Filename
The file path.
return value
Returns the time when the file was last modified, or false in case of an error. The time returned is the time stamp as a UNIX, which is the appropriate date () function.
Instance
Example # 1 Filemtime () example
Outputs e.g. Somefile.txt was last Modified:december 29 2002 22:16:23.
$filename = ' somefile.txt ';
if (file_exists ($filename)) {
echo "$filename was last modified:". Date ("F D Y h:i:s.", Filemtime ($filename));
}
?>
http://www.bkjia.com/PHPjc/445461.html www.bkjia.com true http://www.bkjia.com/PHPjc/445461.html techarticle PHP filemtime-Get File modification time Filemtime (PHP 4, PHP 5) filemtime-Get File Modification Time Description International filemtime (string $ file name) When this function returns ...