Home > Article > Backend Development > php fileinode() function usage example
fileinode() FunctionReturns the inode number of the file.
If successful, return the inode node number of the specified file. On failure, returns false.
Syntax
fileinode(filename)
filename Required. Specifies the documents to be checked.
Example
For example #1 compare the file on inode with the current file
<?php $filename = 'index.php'; if (getmyinode() == fileinode($filename)) { echo 'You are checking the current file.'; } ?>
The above is the detailed content of php fileinode() function usage example. For more information, please follow other related articles on the PHP Chinese website!