ReQueM adlı üyeden alıntı: mesajı görüntüle
hangi kodu kullanıyorsunuz?
@set_time_limit(0);
$sildim = $_GET["temizle"];
if($sildim == "tamam") {
	
        $oku = opendir("onbellek");
        
        while ($sonuc = readdir($oku))
        {
            $sonuck = explode(".",$sonuc);
            $sonuck = end($sonuck);
            
                if($sonuck == "cache"){
            
                    unlink("onbellek/".$sonuc);

            }

                }
									echo '<p style="font-size:24px;color:green;font-weight:bold;">Cache başarıyla boşaltıldı! <span style="color:#333;"><a href="#" onclick="history.back();">Geri dön!</a></span></p>';

}
silmek için bu kodu kullanıyorum hocam.