PHP fileinode() Function
❮ PHP Filesystem ReferenceExampleGet your own PHP Server
Return the file inode of "test.txt":
<?php
echo fileinode("test.txt");
?>
Run Example »
Definition and Usage
The fileinode() function returns the inode of the specified file.
Note: The result of this function is cached. Use clearstatcache() to clear the cache.
Syntax
fileinode(filename)
Parameter Values
Parameter | Description |
---|---|
filename | Required. Specifies the path to the file to check |
Technical Details
Return Value: | The inode number of the file on success, FALSE on failure |
---|---|
PHP Version: | 4.0+ |
❮ PHP Filesystem Reference