note 71880 added to function.mkdir
| From: | fantasysportswire at yahoo dot com | Date: | Thu, 21 Dec 2006 02:07:07 +0000 |
| Subject: | note 71880 added to function.mkdir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-120811@lists.php.net to get a copy of this message | ||
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);
?>
----
Server IP: 216.194.113.175
Probable Submitter: 24.234.128.6
----
Manual Page -- http://www.php.net/manual/en/function.mkdir.php
Edit -- https://master.php.net/note/edit/71880
Del: integrated -- https://master.php.net/note/delete/71880/integrated
Del: useless -- https://master.php.net/note/delete/71880/useless
Del: bad code -- https://master.php.net/note/delete/71880/bad+code
Del: spam -- https://master.php.net/note/delete/71880/spam
Del: non-english -- https://master.php.net/note/delete/71880/non-english
Del: in docs -- https://master.php.net/note/delete/71880/in+docs
Del: other reasons-- https://master.php.net/note/delete/71880
Reject -- https://master.php.net/note/reject/71880
Search -- https://master.php.net/manage/user-notes.php