Вход Регистрация
Файл: klubwm_ru_krutilka/proxy.php
Строк: 22
<?php 
error_reporting
(0);
header('Content-type: text/plain; charset=utf-8');
$ch curl_init('http://hideme.ru/proxy-list/http');
curl_setopt($chCURLOPT_TIMEOUT10);
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
curl_setopt($chCURLOPT_HTTPHEADER, array('Accept: text/html, application/xml, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;''Accept-Language: ru, en, *;''Accept-Charset: iso-8859-1, utf-8, utf-16, *;''Accept-Encoding: identity;''Connection: close'));
curl_setopt($chCURLOPT_USERAGENT'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)');
curl_setopt($chCURLOPT_REFERER'http://hideme.ru/');
$result curl_exec($ch) or die('Неудалось собрать прокси!');
curl_close($ch);
preg_match_all('~[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}:[0-9]{2,6}~'$result$proxy) or die('Неудалось собрать прокси!');
file_put_contents('data/proxy.dat'implode("rn"array_unique($proxy[0]))) or die('Неудалось сохранить прокси!');
die(
'Сбор прокси закончен!');
?>
Онлайн: 2
Реклама