Skip to content

Instantly share code, notes, and snippets.

@apphp-snippets
Created May 20, 2012 20:49
Show Gist options
  • Save apphp-snippets/2759481 to your computer and use it in GitHub Desktop.
Save apphp-snippets/2759481 to your computer and use it in GitHub Desktop.
Allows to perform PHP redirection (must be placed before any browser output)
<?php
/* Source: http://www.apphp.com/index.php?snippet=php-get-remote-ip-address */
// stick your url here
header('Location: http://you_address/url.php');
exit;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment