zblog php获取客户端IP函数GetGuestIP()
GetGuestIP是zblog php内置封装的一个函数,该函数的作用是返回客户端的IP地址,用到的是REMOTE_ADDR。开发会员相关功能的网站可能会用GetGuestIP()
函数比较多。
语法
1 | String GetGuestIP() |
返回字符串,即IP地址
代码示例
1 2 3 | $ip=GetGuestIP(); echo $ip; // echo 127.0.0.1 |
除非注明,文章均由 博客吧 整理发布,欢迎转载。
转载请注明本文地址:https://www.boke8.net/zblog-php-function-getguestip.html
如果喜欢,可以:点此订阅本站
发表留言