位置: 编程技术 - 正文
推荐整理分享PHP:filemtime()的用法_Filesystem函数(php的file函数),希望有所帮助,仅作参考,欢迎阅读内容。
文章相关热门搜索词:php__file__,php filetime,php file_append,php__file__,php filetime,php filetime,php_fileinfo作用,php__file__,内容如对您有帮助,希望把文章链接给更多的朋友!
(PHP 4, PHP 5)
filemtime — 取得文件修改时间
说明 int filemtime ( string $filename )本函数返回文件中的数据块上次被写入的时间,也就是说,文件的内容上次被修改的时间。
参数filename
文件的路径。
返回值返回文件上次被修改的时间, 或者在失败时返回 FALSE。时间以 Unix 时间戳的方式返回,可用于 date()。
范例
Example #1 filemtime() 例子
<?php//outputse.g.somefile.txtwaslastmodified:December::.$filename='somefile.txt';if(file_exists($filename)){echo"$filenamewaslastmodified:".date("FdYH:i:s.",filemtime($filename));}?> 错误/异常失败时抛出E_WARNING警告。
注释Note:
注意:不同文件系统对时间的判断方法可能是不相同的。
Note: 此函数的结果会被缓存。参见clearstatcache() 以获得更多细节。
Tip自 PHP 5.0.0 起, 此函数也用于某些URL 包装器。请参见 支持的协议和封装协议以获得支持 stat() 系列函数功能的包装器列表。
参见filectime() - 取得文件的 inode 修改时间 stat() - 给出文件的信息 touch() - 设定文件的访问和修改时间 getlastmod() - 获取页面最后修改的时间
PHP:fileowner()的用法_Filesystem函数 fileowner(PHP4,PHP5)fileowner取得文件的所有者说明intfileowner(string$filename)取得文件的所有者。参数filename文件的路径。返回值返回文件所有的用户ID,如果出错
PHP:filegroup()的用法_Filesystem函数 filegroup(PHP4,PHP5)filegroup取得文件的组说明intfilegroup(string$filename)取得该文件所属组的ID。组ID以数字格式返回,用posix_getgrgid()来将其解析为组名。参数filen
PHP:fileinode()的用法_Filesystem函数 fileinode(PHP4,PHP5)fileinode取得文件的inode说明intfileinode(string$filename)取得文件的inode。参数filename文件的路径。返回值返回文件的inode节点号,或者在失败时
标签: php的file函数
本文链接地址:https://www.jiuchutong.com/biancheng/285221.html 转载请保留说明!上一篇:PHP:fileperms()的用法_Filesystem函数(php_fileinfo作用)
下一篇:PHP:fileowner()的用法_Filesystem函数(php file_append)
3.加入条件,找出满足要求的楼层安排
楼层安排如下:
Notice: Undefined index: CMSdown in /data/webroot/gcms/lib/Api/Open/Article.php on line img////_dfba5.png" class="img-responsive" alt="如何利用SQL进行推理(如何利用sql进行数据传输)">
win7系统无法在360网页上玩游戏怎么办 win7系统无法在360网页上玩游戏的解决方法(windows7无法继续安装)
友情链接: 武汉网站建设