note 115295 added to function.mkdir

From: Date: Tue, 01 Jul 2014 08:01:02 +0000
Subject: note 115295 added to function.mkdir
Groups: php.notes 
Request: Send a blank email to php-notes+get-199795@lists.php.net to get a copy of this message
The mode on your directory is affected by your current umask. It will end up having (<mkdir-mode> and (not <umask>)). If you want to create one that is publicly readable, do something like this: <?php $oldumask = umask(0); mkdir('mydir', 0777); // or even 01777 so you get the sticky bit set umask($oldumask); ?> --------------- http://coralclub24.com ---- Server IP: 193.19.243.212 Probable Submitter: 193.19.243.212 (proxied: 46.250.12.138) ---- Manual Page -- http://php.net/manual/en/function.mkdir.php Edit -- https://master.php.net/note/edit/115295 Del: integrated -- https://master.php.net/note/delete/115295/integrated Del: useless -- https://master.php.net/note/delete/115295/useless Del: bad code -- https://master.php.net/note/delete/115295/bad+code Del: spam -- https://master.php.net/note/delete/115295/spam Del: non-english -- https://master.php.net/note/delete/115295/non-english Del: in docs -- https://master.php.net/note/delete/115295/in+docs Del: other reasons-- https://master.php.net/note/delete/115295 Reject -- https://master.php.net/note/reject/115295 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#199795) next »