note 95891 added to function.mkdir
| From: | michael at neo dot co dot il | Date: | Wed, 27 Jan 2010 15:39:55 +0000 |
| Subject: | note 95891 added to function.mkdir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-165376@lists.php.net to get a copy of this message | ||
sometimes the directory created with another mode than specified ( 0755 instead 0777 etc).
to solve that use :
$old = umask(0);
mkdir($dir,0777);
umask($old);
----
Server IP: 69.147.83.197
Probable Submitter: 213.8.59.59
----
Manual Page -- http://www.php.net/manual/en/function.mkdir.php
Edit -- https://master.php.net/note/edit/95891
Del: integrated -- https://master.php.net/note/delete/95891/integrated
Del: useless -- https://master.php.net/note/delete/95891/useless
Del: bad code -- https://master.php.net/note/delete/95891/bad+code
Del: spam -- https://master.php.net/note/delete/95891/spam
Del: non-english -- https://master.php.net/note/delete/95891/non-english
Del: in docs -- https://master.php.net/note/delete/95891/in+docs
Del: other reasons-- https://master.php.net/note/delete/95891
Reject -- https://master.php.net/note/reject/95891
Search -- https://master.php.net/manage/user-notes.php