Skip to content

Instantly share code, notes, and snippets.

@sanjayginde
Created July 8, 2016 19:53
Show Gist options
  • Save sanjayginde/3acc0b3c695462d7076b66c4aadccfb6 to your computer and use it in GitHub Desktop.
Save sanjayginde/3acc0b3c695462d7076b66c4aadccfb6 to your computer and use it in GitHub Desktop.
Snippet to output headers in PHP
<?php
echo "Raw dump of Apache Headers follows.<br/>";
foreach (getallheaders() as $name => $value) {
echo "$name: $value<br/>";
};
echo '<hr/>$_SERVER dump: <pre>';
print_r($_SERVER);
echo '</pre>';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment