Menu Home

fileinode

osbo.com | PHP | Functions | fileinode

Gets file inode

Syntax

fileinode ( string $filename ) : int

Parameters

filename

Path to the file.

Return

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

Examples

1

<?

$filename = "index.php";

$return = fileinode($filename);

echo $return;

?>
2393292

2

<?

$filename = "index.php";

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

?>
you are checking the current file

PHP