PHP umask () function
Definition and Usage
umask () function to change the file permissions of the file.
The function of the PHP's umask tomask & 0777and returns the old umask. However, with no parameters, if you call umask (), it returns the current umask.
grammar
umask(mask)
参数 | 描述 |
---|---|
mask | 可选。规定新的权限。默认是 0777。 mask 参数由四个数字组成:
可能的值(如需设置多个权限,请对下面的数字进行总计):
|
Complete PHP Filesystem Reference Manual