Menu Riverview Church

LSTAT

Gives information about a file or symbolic link

SYNTAX

lstat ( string $filename ) : array

PARAMETERS

filename

Path to a file or a symbolic link.

RETURN

See the manual page for stat() for information on the structure of the array that lstat() returns. This function is identical to the stat() function except that if the filename parameter is a symbolic link, the status of the symbolic link is returned, not the status of the file pointed to by the symbolic link.

EXAMPLES

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

PHP