• 31-03-2013, 19:30:49
    #1
    Üyeliği durduruldu
    Mehaba arkadaşlar şuradaki sorunu çözen arkadaşa misli.com a 10 tl çok acil lazım çözüm
  • 01-04-2013, 00:36:36
    #2
    Üyeliği durduruldu
    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.