There it is : [code]<?php $url = "http://blabla.com"; $x = 0; $proxy=@file("zz.txt"); foreach($proxy as $v) list($ips[], $ports[]) = explode(':', $v); // while($x < 129) { //// There are 130 proxy`s $x = $x + 1; $fp = fsockopen($ips[$x], $ports[$x]); fputs($fp, "GET $url HTTP/1.0\r\nHost: $ips[$x]\r\n\r\n"); while(!feof($fp)){ $line = fgets($fp, 4000); print($line); } fclose($fp); } ?>[/code] And error : [i]Warning: fsockopen() expects parameter 2 to be long, string given in z:\home\localhost\www\anti2\xy.php on line 8 Warning: fputs(): supplied argument is not a valid stream resource in z:\home\localhost\www\anti2\xy.php on line 9 Warning: feof(): supplied argument is not a valid stream resource in z:\home\localhost\www\anti2\xy.php on line 10 Warning: fgets(): supplied argument is not a valid stream resource in z:\home\localhost\www\anti2\xy.php on line 11 Warning: feof(): supplied argument is not a valid stream resource in z:\home\localhost\www\anti2\xy.php on line 10 Warning: fgets(): supplied argument is not a valid stream resource in z:\home\localhost\www\anti2\xy.php on line 11 Warning: feof(): supplied argument is not a valid stream resource in z:\home\localhost\www\anti2\xy.php on line 10 Warning: fgets(): supplied argument is not a valid stream resource in z:\home\localhost\www\anti2\xy.php on line 11[/i] ....... Any idea why so? Proxy`s in zz.txt are like [b]33.33.33.33:33[/b] By the way : when i was writing : [code]<?php $proxy = "33.33.33.33"; $port = 33; $url = "http://blabla.com"; $fp = fsockopen($proxy, $port); fputs($fp, "GET $url HTTP/1.0\r\nHost: $proxy\r\n\r\n"); while(!feof($fp)){ $line = fgets($fp, 4000); print($line); } fclose($fp); ?>[/code] it was ok :-\