tamamdır hemen o şekilde deniyorum.
--R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 03:48:44 -->-> Daha önceki mesaj 03:26:34 --
Curl daha önce kullanmadım.
Alıntı
<?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;
}
echo kaynak_cek("http://www.trthaber.com/ligfiksturu-hafta-2.html");
?>
Böyle bi' kod var, bunu kullanıyorum fakat siteyi komple sayfaya çekiyor. Kaynak kodlarını göstermesi gerekiyor benim için.