note 96229 added to function.mkdir
| From: | info^321x dot com at osu1 dot php dot net | Date: | Tue, 16 Feb 2010 09:19:42 +0000 |
| Subject: | note 96229 added to function.mkdir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-165999@lists.php.net to get a copy of this message | ||
@Michael:
It is better to change the file permissions with chmod() after creating the file. Using umask() can
lead to unexpected behavior of concurrently running scripts and the webserver itself because they
all use the same umask.
<?php
mkdir($file);
chmod($file, 0775);
?>
----
Server IP: 83.137.20.135
Probable Submitter: 92.70.242.66
----
Manual Page -- http://www.php.net/manual/en/function.mkdir.php
Edit -- https://master.php.net/note/edit/96229
Del: integrated -- https://master.php.net/note/delete/96229/integrated
Del: useless -- https://master.php.net/note/delete/96229/useless
Del: bad code -- https://master.php.net/note/delete/96229/bad+code
Del: spam -- https://master.php.net/note/delete/96229/spam
Del: non-english -- https://master.php.net/note/delete/96229/non-english
Del: in docs -- https://master.php.net/note/delete/96229/in+docs
Del: other reasons-- https://master.php.net/note/delete/96229
Reject -- https://master.php.net/note/reject/96229
Search -- https://master.php.net/manage/user-notes.php