Last active
January 26, 2016 15:29
-
-
Save alexjs/f589e345cdf25ec12f42 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 | |
# Set a no-cache header header | |
header('Cache-Control: max-age=0'); | |
echo "REMOTE_ADDR: ". $_SERVER['REMOTE_ADDR'] . "<br>"; | |
$output .= "REMOTE_ADDR: ". $_SERVER['REMOTE_ADDR']."\n"; | |
foreach (getallheaders() as $name => $value) { | |
echo "$name: $value<br>"; | |
$output .="$name: $value\n"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment