有没有办法知道静态 IP 是否分配给 ISP?我正在使用phpwhois类查找 IP 所有者,但我无法找到它是公司还是 ISP。可能吗?
问问题
479 次
1 回答
0
尝试这个:
<?php
$domain=$_SERVER['REMOTE_ADDR'];
$domain1 = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];
echo "Viewer's Server's IP Address: <strong>$domain</strong> - ";
echo "Viewer's PC IP Address: <strong>$domain1</strong>";
?>
于 2012-10-24T06:15:02.110 回答