• 26-07-2010, 21:13:30
    #1
    function cek($url)
    {        $ch = curl_init();
            $timeout = 5;
             
            curl_setopt($ch,CURLOPT_URL,$url);
            curl_setopt($ch,CURLOPT_HEADER,true);
            curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
            curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
            curl_setopt($ch,CURLOPT_REFERER,"http://www.google.com");
            curl_setopt($ch,CURLOPT_USERAGENT,"googlebot");
            $data = curl_exec($ch);
            
            curl_close($ch);
            return $data;
    }
    Arkadaşlar yukardaki fonksiyon ile, siteye giriyorum ama bazı sayfalarda yönlendirme oluyor. bu yönlendirmeleri nasıl takip ettirebilirim ?
  • 26-07-2010, 21:25:03
    #2
    Üyeliği durduruldu
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    openbasedir ve safemode off olması gerekir.
  • 26-07-2010, 21:33:12
    #3
    JustGo adlı üyeden alıntı: mesajı görüntüle
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    openbasedir ve safemode off olması gerekir.
    + rep