Loading...
获取Http请求中Host值: $_SERVER["HTTP_HOST"](返回值为域名或IP) 获取服务器IP: GetHostByName($_SERVER['SERVER_NAME']) 接受请求的服务器IP: $_SERVER["SERVER_ADDR"](有时候获取不到,推荐用:GetHostByName($_SERVER['SERVER...