note 95891 modified in function.mkdir by danbrown
| From: | danbrown@php.net | Date: | Thu, 28 Jan 2010 13:25:36 +0000 |
| Subject: | note 95891 modified in function.mkdir by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-165435@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 :
<?php
$old = umask(0);
mkdir($dir,0777);
umask($old);
?>
--was--
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);
http://php.net/manual/en/function.mkdir.php