Forum Moderators: coopster

Message Too Old, No Replies

display visitor's hostname

         

johnd

9:58 pm on Mar 26, 2006 (gmt 0)

10+ Year Member



What's the php script for displaying visitor's hostname on the website?

Vastio

10:14 pm on Mar 26, 2006 (gmt 0)

10+ Year Member



<?php
//Host name
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
echo $hostname;
?>

[us3.php.net ]

*edit- add url