fileinode(3) php man page | unix.com

Man Page: fileinode

Operating Environment: php

Section: 3

FILEINODE(3)								 1							      FILEINODE(3)

fileinode - Gets file inode

SYNOPSIS
int fileinode (string $filename)
DESCRIPTION
Gets the file inode.
PARAMETERS
o $filename - Path to the file.
RETURN VALUES
Returns the inode number of the file, or FALSE on failure.
EXAMPLES
Example #1 Comparing the inode of a file with the current file <?php $filename = 'index.php'; if (getmyinode() == fileinode($filename)) { echo 'You are checking the current file.'; } ?>
ERRORS
/EXCEPTIONS Upon failure, an E_WARNING is emitted.
NOTES
Note The results of this function are cached. See clearstatcache(3) for more details. Tip As of PHP 5.0.0, this function can also be used with some URL wrappers. Refer to "Supported Protocols and Wrappers" to determine which wrappers support stat(3) family of functionality.
SEE ALSO
getmyinode(3), stat(3). PHP Documentation Group FILEINODE(3)
Related Man Pages
filemtime(3) - php
is_executable(3) - php
file_exists(3) - php
fileowner(3) - php
is_writable(3) - php
Similar Topics in the Unix Linux Community
User Guide: Posting in the Emergency Forum
Coming Soon: Upgrade Forum Software (Dec 31 - Jan 1)
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
Please Welcome Nicki Paul to the Moderator Team!