posix_access
Opis
bool posix_access ( string file [, int mode] )posix_access() checks the user's permission of a file.
Parametry
file
The name of the file to be tested.
mode
A mask consisting of one or more of POSIX_F_OK, POSIX_R_OK, POSIX_W_OK and POSIX_X_OK. Defaults to POSIX_F_OK.
POSIX_R_OK, POSIX_W_OK and POSIX_X_OK request checking whether the file exists and has read, write and execute permissions, respectively. POSIX_F_OK just requests checking for the existence of the file.
Przykłady
Notatki
Notatka: Kiedy włączony jest tryb bezpieczny, PHP sprawdza, czy pliki lub katalogi na których chcesz operować mają takie same UID (owner) jak skrypt, który jest aktualnie wykonywany.
Poprzedni | Spis treści | Następny |
POSIX Functions | Początek rozdziału |