fileinode

(PHP 3, PHP 4, PHP 5)

fileinode -- 取得文件的 inode

说明

int fileinode ( string filename )

返回文件的 inode 节点号,出错时返回 FALSE

注: 本函数的结果会被缓存。更多信息参见 clearstatcache()

提示: PHP 5.0.0 起本函数也可被某些 URL wrapper 使用。参考附录 L 来看哪些 wrapper 支持 stat() 系列函数的功能。

参见 stat()


add a note add a note User Contributed Notes
mark nearby techexplained dot com
07-Jan-2005 01:37
This function, in spite of its name, also works for directories. Most any valid path in the filesystem will generate an inode value.