| Manuál PHP | ||
|---|---|---|
| Předcházející | Další | |
posix_access
Popis
bool posix_access ( string file [, int mode] )posix_access() checks the user's permission of a file.
Seznam parametrů
fileThe name of the file to be tested.
modeA 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.
Příklady
Poznámky
Poznámka: Pokud je zapnut bezpečný režim (safe-mode), PHP kontroluje, zda soubory/adresáře, se kterými pracujete, mají stejné UID jako spuštěný skript.
| Předcházející | Domů | Další |
| POSIX Functions | Nahoru |