error_reporting(E_ERROR);
header(“content-Type: text/html; charset=gb2312″);
set_time_limit(120);
$host = isset($_POST['url']) ? chop(str_replace(‘http://’,”,$_POST['url'])) : ‘ www.2cto.com ’;
$port = isset($_POST['duankou']) ? chop($_POST['duankou']) : ’80′;
$num = 10;
function microtime_float()
{
list($usec, $sec) = explode(” “, microtime());
return ((float)$usec + (float)$sec);
}
function ip138($url)
{
$host = ‘www.ip138.com’;
$fp = @fsockopen($host,80,&$errno,&$errstr,3);
$get = “GET /ips.asp?ip=”.$url.” HTTP/1.1\r\nHost:”.$host.”\r\nConnection: Close\r\n\r\n”;
@fputs($fp,$get);
$data = ”;
while ($fp && !feof($fp))
$data .= fread($fp, 1024);
@fclose($fp);
$s1 = ‘\