note 3690 deleted from function.umask by nlopess

From: Date: Wed, 15 Mar 2006 10:07:55 +0000
Subject: note 3690 deleted from function.umask by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-105842@lists.php.net to get a copy of this message
Note Submitter: rlynch at ignitionstate dot com ---- umask affects permissions when files and directories are created.<BR> umask is short for "Un-Mask".<BR> So umask is "and"ed with the permissions of mkdir, fopen, etc.<BR> In a sense, the umask setting is "subtracted" from the permissions given to mkdir.<BR> Example:<BR> <PRE> umask(011); mkdir('foo', 0777); </PRE> will actually make a directory with permissions 0766.

« previous php.notes (#105842) next »