Curriculum
Course: PHP Basic
Login

Curriculum

PHP Basic

PHP Install

0/1

PHP Casting

0/1

PHP Constants

0/1

PHP Magic Constants

0/1

PHP Operators

0/1

PHP Reference

0/276
Text lesson

fileinode()

Example

Get the inode number of “test.txt”:

<?php
echo fileinode(“test.txt”);
?>

Definition and Usage

The fileinode() function returns the inode number of the specified file.

 

Note: The result is cached. Use clearstatcache() to clear the cache.

Syntax

fileinode(filename)

Parameter Values

 

Parameter

Description

filename

Mandatory. Specifies the path to the file to check.

Technical Details

Return Value:

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

PHP Version:

4.0+