If you use module mode to run PHP, the function getallheaders() can meet your requirements. Therefore, the following program can display the HTTP variable values of all your requests:
$headers = getallheaders();
for(reset($headers); $key = key($headers); next($headers) )
{ echo "headers[$key] = ".$headers[$key]."
n"; }