note 19146 added to function.mkdir

From: Date: Mon, 18 Feb 2002 06:12:32 +0000
Subject: note 19146 added to function.mkdir
Groups: php.notes 
Request: Send a blank email to php-notes+get-26725@lists.php.net to get a copy of this message
For file / image uploading, having a folder with 777 permissions is useful as it allows a user to upload files from their browser. PHP doesn't allow you to make a directory with 777 permissions, to get around this make the directory, then change its mode to 777. <form method="post" action="directory_make_upate.php"> Create Directory:<input type="text" name="file" size=15> <input type="submit" value="Create"> </form> <? mkdir($file,0755); chmod ($file,0777); ?> -- http://www.php.net/manual/en/function.mkdir.php http://master.php.net/manage/user-notes.php?action=edit+19146 http://master.php.net/manage/user-notes.php?action=delete+19146 http://master.php.net/manage/user-notes.php?action=reject+19146

« previous php.notes (#26725) next »