Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
<?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