note 52934 deleted from function.mkdir by betz
| From: | betz@php.net | Date: | Sun, 05 Jun 2005 16:25:46 +0000 |
| Subject: | note 52934 deleted from function.mkdir by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-89958@lists.php.net to get a copy of this message | ||
Note Submitter: tommiboy
----
nilsandre at gmx dot de:
This is what the new "recursive" parameter does in PHP5.
Prior to PHP5, you are right, however do not fall for the idea of writing your own recursive
directory builder as I did... not unless you *have* to.
Note that
mkdir -p $dir will just do fine, is some 5-10 times faster than a recursive
"directory builder" in php and more elegant, too. A simple "man mkdir" in time
would have saved me hours...