note 20020 deleted from function.rmdir by tomsommer
| From: | tomsommer@php.net | Date: | Sat, 07 Aug 2004 23:48:26 +0000 |
| Subject: | note 20020 deleted from function.rmdir by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-74173@lists.php.net to get a copy of this message | ||
Note Submitter: burnyburner@example.com
----
rmdir only works if the directory is already empty.
If you want to delete a directory with all its subdirectories and files you can simply use a unix
shell command, put an backticks:
<?
rm -r /My_eGallery/gallery;
?>
This will delete the directory gallery and all its subdirectories and files.
BE CAREFUL WITH THE DIRECTORY! IF YOU WRITE A WRONG PATH ALL DATA WITHIN WILL BE DELETED!!!