O'Reilly logo

Programming PHP, 3rd Edition by Peter MacIntyre, Kevin Tatroe, Rasmus Lerdorf

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

fstat

Synopsis

array fstat(resource handle)

Returns an associative array of information about the file referenced by handle. The following values (given here with their numeric and key indices) are included in the array:

dev (0)

The device on which the file resides

ino (1)

The file’s inode

mode (2)

The mode with which the file was opened

nlink (3)

The number of links to this file

uid (4)

The user ID of the file’s owner

gid (5)

The group ID of the file’s owner

rdev (6)

The device type (if the file is on an inode device)

size (7)

The file’s size (in bytes)

atime (8)

The time of last access (in Unix timestamp format)

mtime (9)

The time of last modification (in Unix timestamp format)

ctime (10)

The time the file was created (in Unix timestamp format)

blksize (11)

The blocksize (in bytes) for the filesystem

blocks (12)

The number of blocks allocated to the file

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required