Skip to content

Instantly share code, notes, and snippets.

@pavelbinar
Created February 20, 2014 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pavelbinar/9122550 to your computer and use it in GitHub Desktop.
Save pavelbinar/9122550 to your computer and use it in GitHub Desktop.
detect IP addres
<?
$ip = getenv('REMOTE_ADDR'); //~ get ip address
$ip = "&ip=".$ip."&"; //~ make it a flashable variable
echo $ip; //~ spit it out
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment