Home  >  Article  >  Backend Development  >  php fileinode gets the file mode_PHP tutorial

php fileinode gets the file mode_PHP tutorial

WBOY
WBOYOriginal
2016-07-20 11:01:021239browse

php fileinode gets the file mode ​

fileinode
(PHP 4, PHP 5)

fileinode - Get the inode of the file

Description
international fileinode (String $filename)
Get the file inode.

Parameters

File name
File path.


Return value
Returns some file on the inode, or FALSE in case an error occurs.

Example

Example #1 Compare the file on inode with the current file

$filename = 'index.php';
if (getmyinode() == fileinode($filename)) {
echo 'You are checking the current file.';
}
?>


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/445460.htmlTechArticlephp fileinode gets the file mode fileinode (PHP 4, PHP 5) fileinode - gets the inode of the file describing the international fileinode (String $filename) Get the file inode. Parameters...
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