定义
fileinode()函数返回指定文件的inode编号。
语法
PHP fileinode()函数具有以下语法。
fileinode(filename)
参数
| 参数 | 是否必须 | 描述 |
|---|---|---|
filename |
需要。 | 要检查的文件 |
返回值
成功时此函数返回文件的inode编号,失败时返回FALSE。
注意
此函数的结果会被缓存。使用clearstatcache()清除缓存。
此函数在Windows系统上不会产生有用的结果。
实例
<?php
/*
http://www.manongjc.com/article/1784.html
作者:码农教程
*/
$filename = \'test.txt\';
if (getmyinode() == fileinode($filename)) {
echo \'You are checking the current file.\';
}
echo fileinode(\"test.txt\");
?>
上面的代码生成以下结果:
You are checking the current file.0
继续阅读与本文标签相同的文章
上一篇 :
我为 Windows 10 修复了一个 bug
-
从五个特点突出表述建设智慧城市必要性
2026-05-15栏目: 教程
-
5G核心网建设是采用SA独立组网还是NSA独立组网
2026-05-15栏目: 教程
-
买了iPhone手机,旧设备上数据怎样迁移,这有3种办法快速解决
2026-05-15栏目: 教程
-
昔日电商巨头轰然倒塌!烧光几十亿补贴后,欠下工资5600万
2026-05-15栏目: 教程
-
从做流量的梦到踏实做生意,小程序成为互联网逆袭工具!
2026-05-15栏目: 教程
