sewakldawk adlı üyeden alıntı: mesajı görüntüle
<?php
function kaynak_cek($url){ 
$ch = curl_init(); 
curl_setopt($ch, CURLOPT_URL, $url); 
$browser = $_SERVER['HTTP_USER_AGENT']; 
curl_setopt($ch, CURLOPT_USERAGENT, $browser); 
curl_setopt($ch, CURLOPT_HEADER, 0); 
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
curl_setopt($ch, CURLOPT_REFERER, "http://www.google.com/"); 
$source = curl_exec($ch); 
curl_close($ch); 
return $source; 
} 
$site = kaynak_cek("http://www.trthaber.com/ligfiksturu-hafta-2.html"); 

 
preg_match_all('#<div>(.*?)</div>\s*<span>(.*?)</span>\s*<span class="sep">-</span>#',$site,$url,PREG_SET_ORDER);
preg_match_all('#<span class="sep">-</span>\s*<span>(.*?)</span>\s*<div>(.*?)</div>\s*</li>#',$site,$url2,PREG_SET_ORDER);
$say=count($url);
$say2=count($url2);
 
 
 
for($i=0; $i<9; $i++){
$sil = $i+1;
echo "<li>".$url[$i][1]." ".$url[$i][2]."-".$url2[$i][1]." <span style='color:red;'>".$url2[$i][2]."</span></li>";
}
 
?>


Dostum tam sen yazmadan önce çözdüm cURL ile çekebiliyorum artık ama yavaşlama sorunu hala var, hiç değişmedi gibi bi' şey.