note 30950 added to function.mkdir
| From: | someone at somewhere dot com | Date: | Fri, 04 Apr 2003 05:51:55 +0000 |
| Subject: | note 30950 added to function.mkdir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46206@lists.php.net to get a copy of this message | ||
Just a quick note that i don't think is mentioned anywhere. If you are trying to make a
directory with spaces and such:
mkdir ('this is a directory', 0775);
You do NOT need to escape the spaces yourself. Looks like PHP does this for you. You do however have
to escape a backticked mkdir however:
$makedir =
mkdir this\ is\ a\ directory;
Just thought i might help someone not spend 30 mins trying to figure out why their code doesn't
work (like me :).
--
http://www.php.net/manual/en/function.mkdir.php
http://master.php.net/manage/user-notes.php?action=edit+30950
http://master.php.net/manage/user-notes.php?action=delete+30950
http://master.php.net/manage/user-notes.php?action=reject+30950