how to read all http headers with php?

Eki

New member
Hello, I need to read an information from the header, but I don't know exact property name for it.

Is there a way to read ALL header information in PHP so I can find the one I need?

something like $accept = $_SERVER["HTTP_ACCEPT"];
but to read all (even non standard) information from the header?
 
Hi Eki,

$crlf = chr(13) . chr(10);
$br = '<br>' . $crlf;
$p = '<br><br>' . $crlf;
foreach ($_SERVER as $key => $val){
echo $key . ' : ' .$val . $br;
}
echo $p;

Best regards,

subexpression
 
Back
Top