$_server[' remote_host '] problem! Seeking Daniel's Guidance twos
Title:
Probably the case: I am in the VPS test program, $_server[' Remote_host ' want to get the domain name of the remote host
However, my server is IIS, no csdn above a cow said: Modify the Conf file in the hostnamelookups variable on
The reason for not changing Apache is because of temporary unaccustomed. Temporarily do not want to change, if this problem really can not solve I change.
$_server[' Remote_host '] I've been getting IP/not domain name
I also use the language of asp: Request.ServerVariables ("REMOTE_ADDR") but get to the domain name.
They function is exactly the same, why one gets to the IP one is the domain name I want.
How can I change it to use
PHP language Gets the domain name of the host remote access! php? Server Remote_host
------Solution--------------------
References:
online and other answers, thank you!
Gets the host on which the current program resides is $_server[' Http_host '.