note 96229 deleted from function.mkdir by danbrown
| From: | danbrown@php.net | Date: | Tue, 16 Feb 2010 17:57:08 +0000 |
| Subject: | note 96229 deleted from function.mkdir by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-166014@lists.php.net to get a copy of this message | ||
Note Submitter: info^321x.com
----
@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);
?>