获得ip

方法:

1.get_client_ip()

2.gethostbyname(gethostbyaddr($_SERVER['REMOTE_ADDR']))

原文地址:https://www.cnblogs.com/hupengyin/p/4986268.html