Skip to content

Instantly share code, notes, and snippets.

@otanodesignco
Created June 20, 2013 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save otanodesignco/5824973 to your computer and use it in GitHub Desktop.
Save otanodesignco/5824973 to your computer and use it in GitHub Desktop.
IP Chicken Clone
<?php
$ip = $_SERVER["REMOTE_ADDR"];
$port = substr($_SERVER["REMOTE_PORT"],0,2);
$browser = $_SERVER["HTTP_USER_AGENT"];
$hostname = gethostbyaddr($ip);
echo $ip;
echo " " . $browser;
echo " " . $hostname;
echo " " . $port;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment