Get http header information in php

getallheaders — Fetch all HTTP request headers

 array getallheaders ( void )  

Example

 <?php  
 foreach (getallheaders() as $name => $value) {  
   echo "$name: $value\n";  
 }  
 ?>  

Nikunj K

Phasellus facilisis convallis metus, ut imperdiet augue auctor nec. Duis at velit id augue lobortis porta. Sed varius, enim accumsan aliquam tincidunt, tortor urna vulputate quam, eget finibus urna est in augue.