/ Published in: PHP
This was copied off wordpress FTP plugin
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/** * Function used to delete a folder. * @param $path full-path to folder * @return bool result of deletion */ function folderDelete($path) { } }else{ } foreach ($entries as $entry) { if ($entry != '.' && $entry != '..') { folderDelete($path.'/'.$entry); } } }else{ } }