Open site with proxy

Status
Not open for further replies.

Hamlets666

Banned
Messages
3
PHP:
<?php  $url = "http://www.com";  $x = 0;  $proxy=@file("zzproxylist.txt");  foreach($proxy as $v) list($ips[], $ports[]) = explode(':', $v);  //  while($x < 545) {   $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);  }  ?>

But it didn`t works :confused:

error :
Warning: fsockopen() expects parameter 2 to be long, string given in z:\home\localhost\www\a\xy.php on line 8 Warning: fputs(): supplied argument is not a valid stream resource in z:\home\localhost\www\a\xy.php on line 9 Warning: feof(): supplied argument is not a valid stream resource in z:\home\localhost\www\a\xy.php on line 10 Warning: fgets(): supplied argument is not a valid stream resource in z:\home\localhost\www\a\xy.php on line 11 Warning: feof(): supplied argument is not a valid stream resource in z:\home\localhost\www\a\xy.php on line 10 Warning: fgets(): supplied argument is not a valid stream resource in z:\home\localhost\www\a\xy.php on line 11 Warning: feof(): supplied argument is not a valid stream resource in z:\home\localhost\www\a\xy.php on line 10 Warning: fgets(): supplied argument is not a valid stream resource in z:\home\localhost\www\a\xy.php on line 11
..............................

And page is loading very big about 65MB :D
 
Status
Not open for further replies.
Back
Top Bottom