HOME
DOMAIN
WEB HOST
AUTO Site
VPS SERVER
CLOUD HOST
SERVER
HK HOST
AGENT
SERVICE
function deldir($dir) { $dh=opendir($dir); while ($file=readdir($dh)) { if($file!="." && $file!="..") { $fullpath=$dir."/".$file; if(!is_dir($fullpath)) { unlink($fullpath); } else { $this -> deldir($fullpath); } } } closedir($dh); if(rmdir($dir)) { return true; } else { return false; } } function createFolder($path) { if (!file_exists($path)){ createFolder(dirname($path)); mkdir($path, 0777); } }