note 116078 deleted from function.mkdir by crell

From: Date: Wed, 29 Jun 2022 19:16:43 +0000
Subject: note 116078 deleted from function.mkdir by crell
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-218712@lists.php.net to get a copy of this message
Note Submitter: bloggernitscomp54engg[at]gmail[dot]com ---- [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.

« previous php.notes (#218712) next »