note 17518 rejected from function.mkdir by zak

From: Date: Wed, 12 Dec 2001 18:42:48 +0000
Subject: note 17518 rejected from function.mkdir by zak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-22552@lists.php.net to get a copy of this message
I wasted a few hours on this function until I realized that at least on some systems, you'll get unpredictable results if you try using "abbreviated" mode values with the mkdir() function. For example, you should always use the form mkdir($dir, 0777) and NOT mkdir($dir, 777), as you can use in chmod. Maybe this is obvious to some, but if you're having troubles getting the right permissions for a directory, you may want to check this first.

« previous php.notes (#22552) next »