note 3218 deleted from mkdir by ronabop

From: Date: Sat, 10 Mar 2001 23:52:30 +0000
Subject: note 3218 deleted from mkdir by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-12252@lists.php.net to get a copy of this message
I had a permissions problem, and couldn't figure out what was actually being set where, but this code actually works to get the directory permissions set to rwxrwxr-x: $oldumask = umask(); umask(002); mkdir("$dirname",0777); umask($oldumask); I'm not sure why it works, but I'll guess that umask(002) gets the umask set to 002 like I wanted, and having 777 on the mkdir means that you don't want to change the current umask.

« previous php.notes (#12252) next »