Whois信息查询

Whois信息查询


$ip = '210.73.72.22';

$output = '';

if ($conn = fsockopen ('whois.apnic.net', 43)) {
    fputs($conn, $ip . "\r\n");
    while(!feof($conn)) {
        $output .= fgets($conn, 128);
    }
    fclose($conn);
}

echo '
<pre>' . $output;