function getRealIpAddr()
{
{
$ip=$_SERVER['HTTP_CLIENT_IP'];
}
{
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
}
{
$ip=$_SERVER['REMOTE_ADDR'];
}
return $ip;
}
ที่มา
http://roshanbh.com.np/2007/12/getting-real-ip-address-in-php.html
No comments:
Post a Comment