Skip to content

Instantly share code, notes, and snippets.

Last active Jan 26, 2016
What would you like to do?
# 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