Ads

Saturday, 19 October 2013

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";  
 }  
 ?>  

No comments:

Post a comment