public static function sock_get ($url, $data)
{$query_str = http_build_query ($data);
$info = parse_url ($url);
$fp = fsockopen ($info ["host"], 80, $errno, $errstr, 3);
//$head = "GET".$info ['path']."?".$info ["query"]."HTTP/1.0\r\n";
$head = "GET".$info ['path']."?".$query_str."HTTP/1.0\r\n";
$head .= "Host:".$info ['host']."\r\n";
$head .= "\r\n";
fputs ($fp, $head);
usleep (300000); // 等待 300 ms
fclose ($fp);
}