PHP umask Function Tutorial
Umask value
(PHP 4, PHP 5)
Umask-Changed the current umask
Describe
Interpretation of the Umask ([International $ matte])
Umask () Sets the PHP umask value to cover up and 0777 and returns the old Umask. When PHP is used as a server module, each request is completed when Umask is restored.
Parameters
Matte Cover
The new umask.
return value
The Umask value () returns only the current umask without parameters, otherwise the old umask is refunded.
Instance
Example of # 1 for Umask ()
$old = umask (0);
chmod ("/path/some_dir/some_file.txt", 0755);
Umask ($old);
Checking
if ($old! = Umask ()) {
Die (' A error occured while changing back the umask ');
}
?>
http://www.bkjia.com/PHPjc/445464.html www.bkjia.com true http://www.bkjia.com/PHPjc/445464.html techarticle php umask Function tutorial umask value (PHP 4, PHP 5) umask-Changed the current umask description annotation umask ([International $ matte]) umask () set PHP umask value to mask ...