Phpumask function tutorial. The umask in the phpumask function tutorial umask value (in PHP4, in PHP5)-changes the umask () of the umask ([International $ mask]) interpreted by the current umask description () set the PHP umask value to hide the php umask function tutorial
Umask value
(PHP 4 and PHP 5)
Umask-changed the current umask
Description
Interpreted umask ([International $ mask])
Set the umask value of PHP to mask and 0777, and return the old umask. When PHP is used as a server module and umask is restored, each request is complete.
Parameters
Mask
New umask.
Return value
The umask value () returns the current umask only without parameters; otherwise, the old umask is returned.
Instance
Example of #1 umask ()
$ Old = umask (0 );
Chmod ("/path/some_dir/some_file.txt", 0755 );
Umask ($ old );
// Checking
If ($ old! = Umask ()){
Die ('An error occured while changing back the umask ');
}
?>
Http://www.bkjia.com/PHPjc/445464.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/445464.htmlTechArticlephp umask function tutorial umask value (in PHP 4, in PHP 5) umask-changed the umask () of the current umask description interpreted by umask ([International $ mask () set the umask value of PHP to mask...