Menu Riverview Church

FSTAT

Gets information about a file using an open file pointer

SYNTAX

fstat ( resource $handle ) : array

PARAMETERS

handle

A file system pointer resource that is typically created using fopen().

RETURN

Returns an array with the statistics of the file; the format of the array is described in detail on the stat() manual page.

EXAMPLES

Array
(
    [0] => 64772
    [1] => 1447148
    [2] => 33188
    [3] => 1
    [4] => 5049833
    [5] => 5049833
    [6] => 0
    [7] => 5
    [8] => 1603656322
    [9] => 1603656322
    [10] => 1603656322
    [11] => 4096
    [12] => 8
    [dev] => 64772
    [ino] => 1447148
    [mode] => 33188
    [nlink] => 1
    [uid] => 5049833
    [gid] => 5049833
    [rdev] => 0
    [size] => 5
    [atime] => 1603656322
    [mtime] => 1603656322
    [ctime] => 1603656322
    [blksize] => 4096
    [blocks] => 8
)

PHP