10.7.7
I need to access information in the request header directly.
How can I do this?
The
getallheaders
function will do this if
you are running PHP as an Apache module. So, the following bit
of code will show you all the request headers:
<?php $headers = getallheaders(); foreach ($headers as $name => $content) { echo "headers[$name] = $content<br>\n"; } ?>
See also
apache_lookup_uri
,
apache_response_headers
, and
fsockopen
|