function baglan($site){
$ch=curl_init("$site");
curl_setopt($ch,CURLOPT_URL,$site);
curl_setopt($ch,CURLOPT_USERAGENT,"Mozilla/5.0 (X11; U; Linux x86_64; en; rv:1.9.0.19) Gecko/20080528 Epiphany/2.22");
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_POST, 0);
curl_setopt($ch,CURLOPT_REFERER,$site);
$al=curl_exec($ch);
curl_close($ch);
return $al;
}
function cevir($text)Karşı sitenin thumblarını alabilmem için referer göndermem gerekiyor sanırım.
Çünkü bu şekilde yaptığımda thumblar file_get_content ile çekilmiyor. Başka yöntemlerle de forbidden alıyorum.
Siteye referer bilgisini nasıl gönderebilirim?
ps: Bu konularda yeniyim