note 17518 added to function.mkdir

From: Date: Wed, 12 Dec 2001 18:01:05 +0000
Subject: note 17518 added to function.mkdir
Groups: php.notes 
Request: Send a blank email to php-notes+get-22547@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. -- http://www.php.net/manual/en/function.mkdir.php http://master.php.net/manage/user-notes.php?action=edit+17518 http://master.php.net/manage/user-notes.php?action=delete+17518 http://master.php.net/manage/user-notes.php?action=reject+17518

« previous php.notes (#22547) next »