php fileinode() function usage example

怪我咯
Release: 2023-03-13 14:10:01
Original
1359 people have browsed it

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)
Copy after login

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;;
}
?>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template