note 114960 added to function.mkdir

From: Date: Tue, 06 May 2014 12:36:13 +0000
Subject: note 114960 added to function.mkdir
Groups: php.notes 
Request: Send a blank email to php-notes+get-199424@lists.php.net to get a copy of this message
Don't forget to use the recursive option on Windows if creating a folder below a folder that already exists. Otherwise you may get a very confusing error message, "Warning: mkdir(): No such file or directory in d:\path\to\file" where you think the folder should exist but you forgot to create the parent(s). For example, if d:\path exists but there is nothing in it: <?php $path = 'd:\path\to\my\file'; mkdir($path, null, true); ?> ---- Server IP: 72.52.91.14 Probable Submitter: 207.10.5.130 ---- Manual Page -- http://php.net/manual/en/function.mkdir.php Edit -- https://master.php.net/note/edit/114960 Del: integrated -- https://master.php.net/note/delete/114960/integrated Del: useless -- https://master.php.net/note/delete/114960/useless Del: bad code -- https://master.php.net/note/delete/114960/bad+code Del: spam -- https://master.php.net/note/delete/114960/spam Del: non-english -- https://master.php.net/note/delete/114960/non-english Del: in docs -- https://master.php.net/note/delete/114960/in+docs Del: other reasons-- https://master.php.net/note/delete/114960 Reject -- https://master.php.net/note/reject/114960 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#199424) next »