}//删除根据目录删除子文件function dir_del($dirpath){$dh=opendir($dirpath);while (($file=readdir($dh))!==false) {if($file!="." && $file!="..") {$fullpath=$dirpath."/".$file;if(!is_dir($fullpath)) {unlink($fullpath);} else {dir_del($fullpath);@rmdir($fullpath);}}}closedir($dh);$isEmpty = true;$dh=opendir($dirpath);
| dirpath | /usr/home/qxu1608750222/htdocs/caches/temp/ |
| dh | Resource |
| file | 11fd6f5df048dbd7e6f927586eb3859b.php |
| fullpath | /usr/home/qxu1608750222/htdocs/caches/temp//11fd6f5df048dbd7e6f927586eb3859b.php |