• PHP Video Tutorials

PHP - Function fileinode()



The fileinode() function can return the inode of a specified file. This function returns the inode number of the file on success or false on failure.

Syntax

int fileinode ( string $filename )

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

Example

<?php
   $filename = "/PhpProject/sample.txt";
   echo fileinode($filename);
?>

Output

12666373952223775
php_function_reference.htm
Advertisements