MC_delta_T adlı üyeden alıntı: mesajı görüntüle
bende çalışmamıştı görünürde başka sorunda gözükmüyor.
Bi de şöyle deniyeyim dedim; farkeden bişey olmadı.
<?  
$aranan=$_POST['ara'];  
if (!function_exists('curl_init')){   
  die('CURL is not installed!');  
}  
$aranan = ereg_replace(" ","%20",$aranan);  
$ch = curl_init();  
curl_setopt($ch, CURLOPT_URL,"http://www.mp3-dinle.us/arama.asp");  
curl_setopt($ch, CURLOPT_POST, 1);  
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");  
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);  
curl_setopt($ch, CURLOPT_POSTFIELDS,"ara=$aranan");  
curl_exec($ch);  
curl_close ($ch);  
include("ayar.php");   
$kaynak=file_get_contents("http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);        
preg_match_all("'<div class=\"mp3_1\"><div class=\"hit\">(.*?)</div><a href=\"(.*?)\">(.*?)</a></div>'", $kaynak, $link);    
for($i=0; $i<count($link[1]); $i++){    
$isim=$link[3][$i];  
$icerik=file_get_contents("http://www.mp3-dinle.us/".$link[2][$i]);  
$bol = explode('<embed src="',$icerik);   
$parca = explode('"',$bol['1']); 
$sorgu=mysql_query("INSERT INTO muzikler (muzik_baslik, muzik) values ('$isim', '$parca[0]')"); 
if($sorgu){print ("<script language='javascript'>alert('Müzikler Eklendi');history.go(-1);</script>"); 
    } 
if(!$sorgu){print ("<script language='javascript'>alert('Olmadı');history.go(-1);</script>"); 
    } 
    } 
?>