How to use Filesystem fileinode in PHP
In this article I am going to explain about fileinode function in PHP.
PHP fileinode() Function
The filesystem fileinode function is used to returns inode no of specified file.
Syntax of fileinode function
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:
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