English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Basic PHP Tutorial

Advanced PHP Tutorial

PHP & MySQL

PHP Reference Manual

PHP fileinode() Function Usage and Example

PHP Filesystem Reference Manual

The fileinode() function can return the index node of the specified file. If successful, this function returns the index node number of the file; if it fails, it returns false.

Syntax

int fileinode ( string $filename )

The result of this function can be cached, and we can use the clearstatcache() function to clear the cache. This function cannot run on the Windows operating system.

Online Example

<?php
   $filename = "sample.txt";
   echo fileinode($filename);
?>
Test and See‹/›

Output Result

12666373952223775

PHP Filesystem Reference Manual