//Php做的連接埠嗅探器--可以指定網站和連接埠
//並回傳嗅探結果
function http_request($server, $port) {
function http_request($server, $port) {
$data = "";
$query = "HEAD / HTTP/1.0";
$fp = fsockopen($server, $port);
if($fp) { while(!feof($fp)) {
$data .= fread($fp, 1000); > }
return $data;
}
?>
";
echo$data
";
}
?>
http://www.bkjia.com/PHPjc/316401.html