Skip to content

Instantly share code, notes, and snippets.

@gnilchee
Created November 7, 2014 16:49
Show Gist options
  • Save gnilchee/7355b7f26f2a43ae44fc to your computer and use it in GitHub Desktop.
Save gnilchee/7355b7f26f2a43ae44fc to your computer and use it in GitHub Desktop.
php code to obtain and display requestor's public ip address
<?php echo $_SERVER["REMOTE_ADDR"];echo "\r\n"; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment