note 71880 deleted from function.mkdir by crell
| From: | crell@php.net | Date: | Wed, 29 Jun 2022 19:19:39 +0000 |
| Subject: | note 71880 deleted from function.mkdir by crell | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-218721@lists.php.net to get a copy of this message | ||
Note Submitter: fantasysportswire at yahoo dot com
----
One small correction on a note from Frank in June 2006 on recursive directories under Windows.
First - this should be in the documentation as its the only function that I know of that php does
not fix the slashes automatically.
Franks note stated:
<?php
$mypath="testdir\subdir\test";
mkdir($mypath,0777,TRUE);
?>
This doesn't work in windows:
<?php
$mypath="testdir/subdir/test";
mkdir($mypath,0777,TRUE);
?>
----
This will work a bit better :)
<?php
$mypath="testdir\\subdir\\test";
mkdir($mypath,0777,TRUE);
?>