(PHP 4, PHP 5, PHP 7)
Gets file inode
int fileinode ( string $filename )
Gets the file inode.
Parameters:
filename
Path to the file.
Returns:
Returns the inode number of the file, or FALSE
on failure.
Exception:
Upon failure, an E_WARNING
is emitted.
Notes:
The results of this function are cached. See clearstatcache() for more details.
Examples:
Comparing the inode of a file with the current file
<?php $filename = 'index.php'; if (getmyinode() == fileinode($filename)) { echo 'You are checking the current file.'; } ?>
See also:
stat() -
Please login to continue.