All pastes #839540 Raw Edit

Anonymous

public text v1 · immutable
#839540 ·published 2007-12-31 02:03 UTC
rendered paste body
<?
$ip = $_SERVER["REMOTE_ADDR"];
$host = gethostbyaddr($ip);

echo "Your IP is: $ip";
if ($host != $ip)
     echo "<BR>Your hostname is: $host";
?>