• 22-05-2018, 10:50:43
    #1
    Üyeliği durduruldu
    Sorun çözülmüştür.
  • 22-05-2018, 10:53:22
    #2
    Konu nediir hocam?
  • 22-05-2018, 13:56:02
    #3
    function curl($url){
        set_time_limit(0);
        $userAgent = 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.2 (KHTML, like Gecko) Chrome/22.0.1216.0 Safari/537.2';
        $proxyList=array(
             '88.248.244.194:9090',
             '212.108.129.22:3128',
             '88.255.148.24:8080'
        );
        $proxyKey=array_rand($proxyList,1);
        $proxy=$proxyList[$proxyKey];
        $curl = curl_init();
        curl_setopt($curl, CURLOPT_URL, $url);
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
        curl_setopt($curl, CURLOPT_HTTPPROXYTUNNEL, 0);
        curl_setopt($curl, CURLOPT_PROXY, $proxy);
        curl_setopt($curl, CURLOPT_TIMEOUT, 0);
        curl_setopt($curl, CURLOPT_REFERER, 'http://www.google.com');
        curl_setopt($curl, CURLOPT_USERAGENT, $userAgent);
        $data = curl_exec($curl);
        curl_close($curl);
        return $data;
    }