Home  >  Article  >  php教程  >  php fileinode 取得文件模式

php fileinode 取得文件模式

WBOY
WBOYOriginal
2016-06-13 11:17:161284browse

php fileinode 取得文件模式  

fileinode
( PHP 4中, PHP 5中)

fileinode -取得文件的inode上

描述
国际fileinode (字符串$文件名)
获取文件inode上。

参数

文件名
文件路径。


返回值
回报inode上一些文件,或FALSE的情况下发生错误。

实例

例如# 1比较inode上的文件与当前文件

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


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
Previous article:php fscanf 函数Next article:php get_meta_tags 函数