note 1207 modified in mkdir by ronabop
| From: | ronabop@php.net | Date: | Fri, 29 Sep 2000 13:27:54 +0000 |
| Subject: | note 1207 modified in mkdir by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5601@lists.php.net to get a copy of this message | ||
This is an annotation from Stig Bakken:
The mode on your directory is affected by your current umask. It will end
up having (<mkdir-mode> and (not <umask>)). If you want to create one
that is publicly readable, do something like this:
$oldumask = umask(0);
mkdir('mydir', 0777); // or even 01777 so you get the sticky bit set
umask($oldumask);
http://www.php.net/manual/function.mkdir.php