note 68094 added to function.mkdir

From: Date: Wed, 12 Jul 2006 21:51:41 +0000
Subject: note 68094 added to function.mkdir
Groups: php.notes 
Request: Send a blank email to php-notes+get-114720@lists.php.net to get a copy of this message
cost me an hour to get recursive switch to work in windows with php 5.2.0, so share it here. The key is backward slash in windows , this php version doesn't recognize forward slash as valid path separator for mkdir(), though other functions support forward-slashed paths just fine. The following example works in Windows: <?php $mypath="testdir\subdir\test"; mkdir($mypath,0777,TRUE); ?> This doesn't work in windows: <?php $mypath="testdir/subdir/test"; mkdir($mypath,0777,TRUE); ?> ---- Server IP: 66.207.199.35 Probable Submitter: 209.68.188.251 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.mkdir.php Edit -- http://master.php.net/note/edit/68094 Del: integrated -- http://master.php.net/note/delete/68094/integrated Del: useless -- http://master.php.net/note/delete/68094/useless Del: bad code -- http://master.php.net/note/delete/68094/bad+code Del: spam -- http://master.php.net/note/delete/68094/spam Del: non-english -- http://master.php.net/note/delete/68094/non-english Del: in docs -- http://master.php.net/note/delete/68094/in+docs Del: other reasons-- http://master.php.net/note/delete/68094 Reject -- http://master.php.net/note/reject/68094 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#114720) next »