
29.12.2009, 05:26
|
|
Участник форума
Регистрация: 12.06.2009
Сообщений: 108
С нами:
8902826
Репутация:
54
|
|
PHP код:
<?php
ignore_user_abort();
set_time_limit(0);
$tim = 5;
// время в минутах
$proxy = "proxy.txt";
// фаил с прокси
//
function get_url($url,$proxy)
{
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_PROXY, $proxy);
curl_exec($ch);
curl_close($ch);
}
$data = file_get_contents($proxy);
$mas = explode("\r\n",$data);
for ($i=0; $i<count($mas); $i++)
{
get_url($url,$mas[$i]);
sleep(60*$tim);
}
?>
а урл то где прописывать?)
так? $url = "http://ya.ru";
и прокси в текстовике должны быть такого формата: "ip  ort" ? 
|
|
|