您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息
免费发信息

取得用户IP地址的PHP代码

2024/3/29 17:52:33发布6次查看
function getrealipaddr() { if (!empty($_server['http_client_ip'])) //check ip from share internet { $ip=$_server['http_client_ip']; } elseif (!empty($_server['http_x_forwarded_for'])) //to check ip is pass from proxy { $ip=$_server['http_x_forwarded_for']; } else { $ip=$_server['remote_addr']; } return $ip;}
复制代码
php
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录