HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

fileinode

Description

The fileinode of Filesystem for PHP gets the file inode.

Syntax

fileinode(
    string $filename
): int|false

Parameters

filename

Path to the file.

Return

Returns the inode number of the file, or false on failure.

Examples

1 · filename

<?

$filename = __FILE__;

$return = fileinode($filename);

echo $return;
149291154

2

<?

$filename = __FILE__;

$return = fileinode($filename);

if(getmyinode() == $return)
{
    echo "you are checking the current file";
}
you are checking the current file