首頁  >  文章  >  後端開發  >  php fileinode() 函數使用實例

php fileinode() 函數使用實例

怪我咯
怪我咯原創
2017-07-11 11:26:161306瀏覽

fileinode() 函數傳回檔案的 inode 編號。

若成功,則傳回指定檔案的 inode 節點號。若失敗,則傳回 false。

語法

fileinode(filename)

filename    必要。規定要檢查的文件。    

實例

例如# 1比較inode上的檔案與目前檔案

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

以上是php fileinode() 函數使用實例的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn