Skip to content

Instantly share code, notes, and snippets.

@alexjs
Last active January 26, 2016 15:29
Show Gist options
  • Save alexjs/f589e345cdf25ec12f42 to your computer and use it in GitHub Desktop.
Save alexjs/f589e345cdf25ec12f42 to your computer and use it in GitHub Desktop.
<?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