Re: [PHP4BETA] mkdir Bug?
| From: | Unknown Sender | Date: | Thu, 22 Jul 1999 18:33:12 +0000 |
| Subject: | Re: [PHP4BETA] mkdir Bug? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-2548@lists.php.net to get a copy of this message | ||
On Thu, 22 Jul 1999, Stig Bakken wrote:
}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);
^
Argh... I'm a fool. Of course I tried this, but I have been making a
beginner error and set umask(0777).
} mkdir('mydir', 0777); // or even 01777 so you get the sticky bit set
} umask($oldumask);
Huff...
--
SSilk - Alexander Aulbach - Herbipolis/Frankonia Minoris - (0931)22032