function get_ip()
{
global $_SERVER;
if ( isset($_SERVER["HTTP_X_FORWARDED_FOR"]) )
{
$realIP = $_SERVER["HTTP_X_FORWARDED_FOR"];
}
elseif ( isset($_SERVER["HTTP_CLIENT_IP"]) )
{
$realIP = $_SERVER["HTTP_CLIENT_IP"];
}
else
{
$realIP = $_SERVER["REMOTE_ADDR"];
}
return $realIP;
}免费asp空间,免费空间
时间: 2024-11-01 03:53:03