Home  >  Article  >  Backend Development  >  php fileinode() function usage example

php fileinode() function usage example

怪我咯
怪我咯Original
2017-07-11 11:26:161360browse

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 = &#39;index.php&#39;;
if (getmyinode() == fileinode($filename)) {
    echo &#39;You are checking the current file.&#39;;
}
?>

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn