Re: [PHP4BETA] mkdir Bug?

From: Date: Thu, 22 Jul 1999 11:57:03 +0000
Subject: Re: [PHP4BETA] mkdir Bug?
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-2511@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: $oldumask = umask(0); mkdir('mydir', 0777); // or even 01777 so you get the sticky bit set umask($oldumask); - Stig On Thu, 22 Jul 1999, John Coggeshall wrote: > > Hey all... I'm having problems with mkdir, i think there might be some sort > of bug > > mkdir('mydir', 0777); > > should create a public-access directory "mydir" but it creates a directory > with mode 0755 instead?? What gives? I have the permissions set for the > parent dir that mydir is being created in as 0777 as well. > > John > > > > -- > PHP 4 Beta >

« previous php.version4 (#2511) next »