http_request fonksiyonunu şunun ile değiştirirmisiniz?
function http_request($url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
//curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)");
//curl_setopt($ch, CURLOPT_REFERER, "http://www.google.com/");
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
Useragent ve Referer gerekkmez diye düşünerekten deaktif yaptım. Bu fonksiyon işinizi sorunsuz görecektir. Eğer görmez ise sunucunuzda CURL kütüphanesinin aktif olup olmadığını kontrol edin. Eğer aktif ve hala çalışmıyorsa http_request fonksiyonunun adını değiştirin.