ok o zaman....
--R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 17:40:32 -->-> Daha önceki mesaj 17:12:03 --
function siteBaglan($url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
$browser = $_SERVER['HTTP_USER_AGENT'];
curl_setopt($ch, CURLOPT_USERAGENT,"googlebot");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_REFERER, "http://www.google.com/");
$source = curl_exec($ch);
curl_close($ch);
return $source;
}
$getir = siteBaglan("http://www.nevsehiraskf.net/index.php/1-amator-kume/a-gurubu-fikstur");
preg_match_all('#<table(.*?)</table>#s',$getir,$kontrolx);
$kontrol="";
for ($a=0; $a<count($kontrolx[1]); $a++) {
$kontrol .= $kontrolx[1][$a];
}
echo '<table>'. $kontrol.'</table>';Curl için bir function yapalım ve bu sekişlde kullnalım aynı sayfa içinde birden cok baglan yapabiliriz surekli aynı kodu yazmayalım....