/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function destroyDir($dir, $virtual = false) { $ds = DIRECTORY_SEPARATOR; { { if ($file == '.' || $file == '..') { continue; } { destroyDir($dir.$ds.$file); } else { } } return true; } else { return false; } }