note 116078 modified in function.mkdir by cmb
| From: | cmb@php.net | Date: | Wed, 18 May 2016 12:30:46 +0000 |
| Subject: | note 116078 modified in function.mkdir by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-205505@lists.php.net to get a copy of this message | ||
[Editor's note: that behavior is related to the current umask, which is documented above.]
mkdir("video/".$userId,0777);
Every time I run this code but permission wont change. It always show 755.I have spent lot of time
in why my folder is not getting permission 777 (I think, mkdir has some problem in setting
permission ).
then I used this code.
mkdir("video/".$userId,0777);
chmod("video/".$userId,0777);
my folder permission get changed 777.
--was--
mkdir("video/".$userId,0777);
Every time I run this code but permission wont change. It always show 755.I have spent lot of time
in why my folder is not getting permission 777 (I think, mkdir has some problem in setting
permission ).
then I used this code.
mkdir("video/".$userId,0777);
chmod("video/".$userId,0777);
my folder permission get changed 777.
http://php.net/manual/en/function.mkdir.php