[2] ErrorException in common.php line 123

unlink(D:\wwwroot\4009942400\caches\temp\/983cf22fa727dfe599088e6ff4a9826d.php): Permission denied

  1. }
  2. if (!function_exists('dir_del')) {
  3. //删除根据目录删除子文件
  4. function dir_del($dirpath){
  5. $dh=opendir($dirpath);
  6. while (($file=readdir($dh))!==false) {
  7. if($file!="." && $file!="..") {
  8. $fullpath=$dirpath."/".$file;
  9. if(!is_dir($fullpath)) {
  10. unlink($fullpath);
  11. } else {
  12. dir_del($fullpath);
  13. @rmdir($fullpath);
  14. }
  15. }
  16. }
  17. closedir($dh);
  18. $isEmpty = true;
  19. $dh=opendir($dirpath);