Пример #1
0
        $params = array(CURLOPT_REFERER => $url, CURLOPT_COOKIE => "referrer=" . $url);
        //refferer must be the same as site
        $SC->request($url, "POST", null, null, null, $params, $key);
    }
    $SC->execute(5);
}
$SC->clear_proxy();
$SC->clear_the_parse_list();
unset($SC);
if (!empty($proxy_list)) {
    //NOW WE NEED TO CHECK PROXY IS WORKS
    $SC = new SuperCurl();
    $SC->__set('window_size', 200);
    $SC->init_console(true);
    $SC->__set("use_useragent_list", true);
    $SC->load_useragent_list('files/useragent_list.txt');
    $SC->__set("use_proxy_list", true);
    $SC->load_proxy_list($proxy_list, 200, 'http', 'http://ip-check.info/?lang=en', '<title>IP');
    $SC->execute(200);
    $proxy_list = $SC->get_alive_proxy();
    $SC->clear_proxy();
    $SC->clear_the_parse_list();
    unset($SC);
}
if (!empty($proxy_list)) {
    $fname = 'files/proxy_list.txt';
    $fp2 = fopen($fname, 'w');
    ftruncate($fp2, 0);
    $proxystring = implode("\n", $proxy_list);
    fwrite($fp2, $proxystring);
    fclose($fp2);