note 68094 deleted from function.mkdir by felipe
| From: | felipe@php.net | Date: | Mon, 10 Dec 2007 18:10:45 +0000 |
| Subject: | note 68094 deleted from function.mkdir by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133255@lists.php.net to get a copy of this message | ||
Note Submitter: Frank
----
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);
?>