note 14485 added to function.rmdir.php
| From: | jason at ics dot mq dot edu dot au | Date: | Thu, 02 Aug 2001 01:35:04 +0000 |
| Subject: | note 14485 added to function.rmdir.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16197@lists.php.net to get a copy of this message | ||
If you want a simple and cheap way to delete non-empty directories under unix, just wrap a function
around a call to
exec("rm -rf $dir_name");
Lazy, but it works, and works simply
http://www.php.net/manual/en/function.rmdir.php