Web Hosting Talk







View Full Version : Remote Host


davarious
01-17-2002, 04:13 PM
if i will set in a php script.
that he must show the Host of the user who is online..
(commands: $remote_host) he will display nothing,

if i set it to: $remote_addr then he will show the IP (that's ok).

what's wron with my linux-server becaus he do not show a user-host, only he will show the IP....

priyadi
01-17-2002, 04:52 PM
Originally posted by davarious
if i will set in a php script.
that he must show the Host of the user who is online..
(commands: $remote_host) he will display nothing,

if i set it to: $remote_addr then he will show the IP (that's ok).

what's wron with my linux-server becaus he do not show a user-host, only he will show the IP....

$remote_host is available only if your Apache is configured with HostNameLookups On. However, you can always find the hostname from $remote_addr by using statement like this $remote_host = gethostbyaddr($remote_addr)