您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

php filemtime -取得文件修改时间_PHP教程

2025/3/30 9:47:21发布23次查看
php filemtime -取得文件修改时间 
filemtime
( php 4中, php 5中)
filemtime -取得文件修改时间
描述
国际filemtime (字符串$文件名)
这个函数返回时,数据块的文件被写入,这就是当时的内容文件改变。
参数
文件名
文件路径。
返回值
返回时间的文件的最后修改,或false的情况下发生错误。返回的时间是作为一个unix的时间戳,这是合适的日期( )函数。
实例
例如# 1 filemtime ( )的例子
// 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.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/445461.htmltecharticlephp filemtime -取得文件修改时间 filemtime ( php 4中, php 5中) filemtime -取得文件修改时间 描述 国际filemtime (字符串$文件名) 这个函数返回时...
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product