Added remove directory function

This commit is contained in:
root
2019-05-27 13:49:13 -04:00
parent 86b0c1c45a
commit 709f88e1ee

View File

@@ -1,7 +1,5 @@
<?php
function keygen()
{
$chars = "abcdefghijklmnopqrstuvwxyz";
@@ -25,4 +23,13 @@ function initials($str) {
return $ret;
}
function removeDirectory($path) {
$files = glob($path . '/*');
foreach ($files as $file) {
is_dir($file) ? removeDirectory($file) : unlink($file);
}
rmdir($path);
return;
}
?>