<? $hostname = gethostbyaddr "126.96.36.199"; echo $hostname; ?>
Simple but confusing
Posted 13 January 2006 - 08:07 AM
Posted 13 January 2006 - 09:25 AM
Posted 08 March 2006 - 03:52 AM
<? $remoteip=$_SERVER['REMOTE_ADDR']; $hostname = gethostbyaddr $remoteip; echo $hostname; ?>
I'm not sure if that will work. I would test it but its very later here and im about to go to bed.
(if that doesnt work, try quotes around $remoteip)
Posted 08 March 2006 - 04:17 AM
I need a fix for this code so it displays other peoples service host
<? $hostname = gethostbyaddr "188.8.131.52"; echo $hostname; ?>[/quote]
echo and print are very unique in that they dont require parans (). Virtually every other function does.
$hostname = gethostbyaddr("184.108.40.206");
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users