Skip to Content
Programming PHP
book

Programming PHP

by Rasmus Lerdorf, Kevin Tatroe
March 2002
Intermediate to advanced
528 pages
21h 29m
English
O'Reilly Media, Inc.
Content preview from Programming PHP

Name

fstat

Synopsis

array fstat(int handle)

Returns an associative array of information about the file referenced by handle. The following values(given here with their numeric and key indexes) 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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming PHP, 3rd Edition

Programming PHP, 3rd Edition

Rasmus Lerdorf, Kevin Tatroe, Peter MacIntyre
Programming PHP, 2nd Edition

Programming PHP, 2nd Edition

Rasmus Lerdorf, Kevin Tatroe, Peter MacIntyre
Clean Code in PHP

Clean Code in PHP

Carsten Windler, Alexandre Daubois

Publisher Resources

ISBN: 1565926102Supplemental ContentCatalog PageErrata