note 25339 added to function.umask
| From: | sam at totallydigital dot co dot nz | Date: | Fri, 20 Sep 2002 02:04:33 +0000 |
| Subject: | note 25339 added to function.umask | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-37009@lists.php.net to get a copy of this message | ||
The first comment perhaps didn't quite make clear what's on with your umask and the
permissions.
The permission passed to a command is first bitwise ANDed with the _INVERSE_ of the current umask,
then applied to the file.
For example, umask = 0011 and permission = 0775
The inverse of 0011 = 0766
0775 AND 0766
= 111.111.101 AND 111.110.110
= 111.110.100
= 0764
--
http://www.php.net/manual/en/function.umask.php
http://master.php.net/manage/user-notes.php?action=edit+25339
http://master.php.net/manage/user-notes.php?action=delete+25339
http://master.php.net/manage/user-notes.php?action=reject+25339