Skip to content

Instantly share code, notes, and snippets.

@ribel
Created May 3, 2013 08:14
Show Gist options
  • Save ribel/5507868 to your computer and use it in GitHub Desktop.
Save ribel/5507868 to your computer and use it in GitHub Desktop.
PHP usefull code snippets
$headers = apache_request_headers();
$headers1 = '';
foreach ($headers as $header => $value) {
$headers1 .= "$header: $value <br />\n";
}
$file = 'public://headers.txt';
file_put_contents($file, $headers1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment