How to use Filesystem fileinode in PHP

In this article I am going to explain about fileinode function in PHP.
  • 1790

PHP fileinode() Function

The filesystem fileinode function is used to returns inode no of specified file.

Syntax of fileinode function

fileinode(filename)

Parameters in fileinode function

It has only one parameter:

Parameter Description
filename It specifies the file to check.

Example of filesystem fileinode function

<html>

<body>
 

<?php

$filename = 'C:\wamp\www\Dinesh\PhpIntro.txt';

if (getmyinode() == fileinode($filename)) {

    echo 'You are checking the current file.';

}

else

{

echo "Nothing";

}

?>
 

</body>

</html>


Output:

fileinodefunctionphp.jpg

You may also want to read these related articles :
here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.