note 70766 deleted from function.rmdir by bjori
| From: | bjori@php.net | Date: | Fri, 27 Oct 2006 10:20:45 +0000 |
| Subject: | note 70766 deleted from function.rmdir by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-119169@lists.php.net to get a copy of this message | ||
Note Submitter:
----
Of course, if you're on *nix...
<?
$dir = '/path/to/folder';
// delete directory and all contents within
shell_exec("rm -rf ${dir}");
// delete all contents within, but leave the toplevel directory
shell_exec("rm -rf ${dir}/*");
?>