note 9651 added to rmdir
| From: | phoeniciansailor at hotmail dot com | Date: | Thu, 16 Nov 2000 20:28:00 +0000 |
| Subject: | note 9651 added to rmdir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7790@lists.php.net to get a copy of this message | ||
The above recursive directory deletion procedure wouldn't work for me on Windows 2000 unless I
added:
closedir($all);
unset( $all );
before the 'rmdir($location);' line. The files would get deleted but I'd get a
permissions error when trying to remove the directory itself.
http://www.php.net/manual/function.rmdir.php