php set_time_limit false ignore_user_abort true file hideme txt ch cur

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
<?php
set_time_limit(false);
ignore_user_abort(true);
$f = file('hideme.txt');
$ch = curl_init();
curl_setopt_array($ch, array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 10
));
foreach($f as $k => $v) {
curl_setopt_array($ch, array(
CURLOPT_PROXY => $v,
CURLOPT_URL => 'http://elka.mediafort.ru/js/sharingcodes/?elkaid=12167'
));
$res = curl_exec($ch);
echo ($k + 1) . '. ' . ($res ? 'okay' : 'error') . "\n";
}