The following headers were sent to the server:

'. "local IP" .': '. $localIPAddress .'
'; /* All $_SERVER variables prefixed with HTTP_ are the HTTP headers */ foreach ($_SERVER as $header => $value) { if (substr($header, 0, 5) == 'HTTP_') { /* Strip the HTTP_ prefix from the $_SERVER variable, what remains is the header */ $clean_header = strtolower(substr($header, 5, strlen($header))); /* Replace underscores by the dashes, as the browser sends them */ $clean_header = str_replace('_', '-', $clean_header); /* Cleanup: standard headers are first-letter uppercase */ $clean_header = ucwords($clean_header, " \t\r\n\f\v-"); /* And show'm */ echo ''. $header .': '. $value .'
'; } } ?>