note 3691 deleted from function.mkdir by aidan
| From: | aidan@php.net | Date: | Sun, 03 Oct 2004 13:41:47 +0000 |
| Subject: | note 3691 deleted from function.mkdir by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-77855@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.
umask is short for "Un-Mask".
So "not" umask is "and"ed with the permissions of mkdir, fopen, etc.
In a sense, the umask setting is "subtracted" from the permissions given to mkdir.
Example:
umask(011);
mkdir('foo', 0777);
will actually make a directory with permissions 0766.