umask

(PHP 3, PHP 4 >= 4.0.0)

umask -- Změnit současnou umask

Popis

int umask (int mask)

umask() sets PHP's umask to mask & 0777 and returns the old umask. When PHP is being used as a server module, the umask is restored when each request is finished.

umask() without arguments simply returns the current umask.

Poznámka: Tato funkce nemusí na Windows fungovat.