note 3691 modified in mkdir by ronabop

From: Date: Fri, 29 Sep 2000 13:31:05 +0000
Subject: note 3691 modified in mkdir by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-5603@lists.php.net to get a copy of this message
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. http://www.php.net/manual/function.mkdir.php

« previous php.notes (#5603) next »