Skip to content

Instantly share code, notes, and snippets.

@juniorcesarabreu
Last active April 12, 2017 13:46
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 juniorcesarabreu/4af347a1cd5b895780b24a01102761f1 to your computer and use it in GitHub Desktop.
Save juniorcesarabreu/4af347a1cd5b895780b24a01102761f1 to your computer and use it in GitHub Desktop.
pega o ip da requisição usando a variável global $_SERVER
// pega o ip da requisição usando a variável global $_SERVER
<?= $_SERVER['REMOTE_ADDR'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment