For continued disscussion on this topic : Getting host name....
jtown
08-17-2000, 02:32 AM
How do I get the host name like this? (ac8f6902.ipt.aol.com) $ENV{REMOTE_HOST} doesn't exist. and none of the environment variables have this data. Do I have to decode the ip or something?
thanks in advance.
James
gzazJim
08-17-2000, 07:05 AM
James,
Let me look into this in the morning when I have some refernces readily available.
Thanks,
Jim
jtown
08-17-2000, 07:40 AM
ok thanks graz.
jtown
08-17-2000, 11:25 AM
got it.....
I found the solution....thanks.
big_wreck
08-17-2000, 12:55 PM
How are you doing it (out of curiosity)
jtown
08-17-2000, 04:53 PM
this is from a script that get's the host name. I just took one line from the script.
$logHost = gethostbyaddr(pack('C4',split(/\./,$ENV{'REMOTE_ADDR'})),2) || $ENV{'REMOTE_ADDR'} || '[Unknown]';
it seems to be the right thing.
James
Powered by vBulletin® Version 4.1.12 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.