3 if (!function_exists('apache_request_headers')) {
4 function apache_request_headers() {
5 foreach($_SERVER as $key=>$value) {
6 if (substr($key,0,5)=="HTTP_") {
7 $key=str_replace(" ","-",ucwords(strtolower(str_replace("_"," ",substr($key,5)))));
17 $headers = apache_request_headers();
19 foreach( explode( "_" , $_GET[ "keys" ] ) as $key ) {
20 echo "$key: $headers[$key]\n";