note 1207 modified in function.mkdir by aidan

From: Date: Sun, 03 Oct 2004 13:42:33 +0000
Subject: note 1207 modified in function.mkdir by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-77856@lists.php.net to get a copy of this message
This is an annotation from Stig Bakken: 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); ?> --was-- This is an annotation from Stig Bakken: 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: $oldumask = umask(0); mkdir('mydir', 0777); // or even 01777 so you get the sticky bit set umask($oldumask); http://php.net/manual/en/function.mkdir.php

« previous php.notes (#77856) next »