PHP fileinode()Function


PHP Filesystem 参考手册Complete PHP Filesystem Reference Manual

Definition and Usage

The fileinode() function returns the inode number of the specified file.

If successful, the function returns the inode number of the specified file. If it fails, it returns FALSE.

Syntax

fileinode(filename)

Parameters Description
filename Required. Specifies the file to check.


Tips and Notes

Note:The results of this function are cached. Use clearstatcache() to clear the cache.

Note:This function cannot run on Windows systems.


Example

<?php
echo fileinode("test.txt");
?>


PHP Filesystem 参考手册Complete PHP Filesystem Reference Manual Other Extensions