if(is_dir($cookiedir_1)){  //可能是路径招成的

解决方案 »

  1.   

    大家有什么好办法吗?
    因为我想删除这里的文件:'C:/Documents  and  Settings/Administrator/Cookies/
      

  2.   

    $arr_file = scandir('./');
    foreach ($arr_file as $file){
    $ext = pathinfo($file);
        if (!in_array(strtolower($ext['extension']),$file_type)){
        unlink($file_location.$file);
        }
    }
      

  3.   

    $arr_file = scandir('./');
    foreach ($arr_file as $file){
        unlink($file);
    }