コード例 #1
0
ファイル: ProxyUpdate.php プロジェクト: bpteam/php-proxy-list
 function __construct($checkUrl = 'http://test1.ru/proxy_check.php', $port = 80, $serverIp = false, $urlCheckServerIp = 'http://bpteam.net/server_ip.php')
 {
     parent::__construct();
     $this->loader = new Loader('LoaderMultiCurl');
     $this->setUrlCheckServerIp($urlCheckServerIp);
     $this->loader->setTypeContent('file');
     $this->loader->setSleepTime(500000);
     $this->loader->setDefaultOption(CURLOPT_PORT, $port);
     $this->loader->setDefaultOption(CURLOPT_TIMEOUT, 15);
     $this->setModulesDir(__DIR__ . '/modules');
     $this->setSourceDir(__DIR__ . '/proxy_list/source');
     $this->setFunctionUrl($checkUrl);
     $this->setServerIp($serverIp);
 }