Created
May 16, 2017 11:50
-
-
Save philipnewcomer/b6c72df1115ff85a6ab3e768c9e63ca7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo 'X-Forwarded-IP: '; | |
if ( isset( $_SERVER['X-Forwarded-IP'] ) ) { | |
echo $_SERVER['X-Forwarded-IP']; | |
} | |
echo '<br>REMOTE_ADDR: '; | |
if ( isset( $_SERVER['REMOTE_ADDR'] ) ) { | |
echo $_SERVER['REMOTE_ADDR']; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment