Forum Moderators: coopster
For example, the domain: pcp08721939pcs.norstn01.pa.comcast.net is associated with IP: 68.32.198.43
How can I use php functions to get 'pcp08721939pcs.norstn01.pa.comcast.net'?
Anyone can help me out? Thanks.
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
//that will get their host by ip
echo $hostname;
?>
some users will come in with more then 1 ip though