posix_access

posix_access

(PHP 5 >= 5.1.0, PHP 7)

posix_access Determine accessibility of a file

Description

bool posix_access ( string $file [, int $mode = POSIX_F_OK ] )

posix_access() checks the user's permission of a file.

Parameters

file

The name of the file to be tested.

mode

A mask consisting of one or more of <