note 62075 deleted from function.rmdir by aidan
| From: | aidan@php.net | Date: | Wed, 15 Apr 2009 04:26:13 +0000 |
| Subject: | note 62075 deleted from function.rmdir by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-153265@lists.php.net to get a copy of this message | ||
Note Submitter: dao at design-noir.de
----
[bobbfwed at comcast dot net], you posted really bad code. The constant and the global variable are
absolutely useless and make the function inflexible and fault-prone. Furthermore your error
echo'ing is weird, you should use trigger_error().
Now, since previous rmdirr() implementations lack the ability to simply clear a directory and
ClearDirectory() / RemoveDirectory() by [mn dot yarar at gmail dot com] didn't work with nested
directories, I've rewritten them: http://en.design-noir.de/webdev/PHP/rmdirr_cleardir/