Thread: gethostbyaddr
View Single Post
Old 12-09-2008, 05:33 AM   #3 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Quote:
Originally Posted by Wildhoney View Post
php Code:
$szHost = gethostbyaddr($_SERVER['REMOTE_ADDR']);
echo 'Your host is: ' . $szHost;

The $REMOTE_ADDR method you're using is a really old way. I think that's attempting to use super-globals. I used them only once when freelancing at one particular place.
I've never used it. :P, in fact, I've never seen it on the php documentation.
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote