Get the inode number of “test.txt”:
<?php echo fileinode(“test.txt”); ?> |
The fileinode() function returns the inode number of the specified file.
Note: The result is cached. Use clearstatcache() to clear the cache.
fileinode(filename) |
Parameter |
Description |
filename |
Mandatory. Specifies the path to the file to check. |
Return Value: |
Returns the inode number of the file on success, or |
PHP Version: |
4.0+ |