查看: 5352|回复: 0
打印 上一主题 下一主题

php中filectime() 函数

[复制链接]
跳转到指定楼层
1#
发表于 2007-12-14 13:40:25 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
台州网址导航
Definition and Usage
定义和用法
The filectime() function returns the last time the specified file was changed.
filectime()函数的作用是:返回指定文件的inode修改时间

This function checks for the inode changes as well as regular changes. Inode changes is when permissions, owner, group or other metadata is changed.
这个函数将检查文件的日常修改情况和inode修改情况。Inode修改情况是指:允许[permission]条件的修改、所有者[owner]情况的修改、群组[group]情况的修改或其他元数据[metadata]情况的修改。

This function returns the last change time as a Unix timestamp on success, FALSE on failure.
注意点:部分Unix系统不能访问时间升级[time update],是因为它减少了对访问大容量文件的应用程序的运行。

filectime(filename)

Parameter参数 Description描述
filename Required. Specifies the file to check
必要参数。指定文件对象


--------------------------------------------------------------------------------

Tips and Notes
提示和注意点
Note: The result of this function are cached. Use clearstatcache() to clear the cache.
注意:这个函数返回的结果将会被自动缓存;如果希望清除缓存,可以使用clearstatcache()函数。

Tip: Use the filemtime() function to return the last time the file content was changed.
提示:filemtime()函数返回文件最后被修改的时间


--------------------------------------------------------------------------------

Example
案例
<?php
echo filectime("test.txt");
echo "<br />";
echo "Last change: ".date("F d Y H:i:s.",filectime("test.txt"));
?>  

The output of the code above could be:
上述代码将输出下面的结果:

1138609592
Last change: January 30 2006 09:26:32.
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 转播转播 分享分享 分享淘帖
台州维博网络(www.tzweb.com)专门运用PHP+MYSQL/ASP.NET+MSSQL技术开发网站门户平台系统等。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

网站推广
关于我们
  • 台州朗动科技(Tzweb.com)拥有多年开发网站平台系统门户手机客户端等业务的成功经验。主要从事:政企网站,系统平台,微信公众号,各类小程序,手机APP客户端,浙里办微应用,浙政钉微应用、主机域名、虚拟空间、后期维护等服务,满足不同企业公司的需求,是台州地区领先的网络技术服务商!

Hi,扫描关注我

Copyright © 2005-2026 站长论坛 All rights reserved

Powered by 站长论坛 with TZWEB Update Techonolgy Support

快速回复 返回顶部 返回列表