note 78035 deleted from function.mkdir by nlopess
| From: | nlopess@php.net | Date: | Wed, 17 Oct 2007 22:09:58 +0000 |
| Subject: | note 78035 deleted from function.mkdir by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-131472@lists.php.net to get a copy of this message | ||
Note Submitter: kidlunch at gmail dot com
----
Perhaps the commenting system is no longer being moderated, but why in the name of PHP Gods are
people posting "recursion" functions?!?! Use the TRUE flag like
mkdir("/path/to/my/dir", 0700, TRUE);
.. so that the folders "path" and "to" and "my" get created on the fly
if they don't exist already. PLEASE READ THIS MANUAL BEFORE POSTING!! If the proposed
directory ends with a trailing slash and confuses Windows, then check the VARIABLE and change it,
don't make convoluted functions that replicate a BUILT IN PHP FUNCTION!!!