public static function GetRequestHeaders()
	{

		if (function_exists('getallheaders')) return getallheaders();

		$headers = array();
		foreach ($_SERVER as $k => $v)
		{
			if (substr($k, 0, 5) == "HTTP_")
			{
				$k = str_replace('_', ' ', substr($k, 5));
				$k = str_replace(' ', '-', ucwords(strtolower($k)));
				$headers[$k] = $v;
			}
		}
		return $headers;
	}
public static function GetRequestHeaders()
	{

		if (function_exists('getallheaders')) return getallheaders();

		$headers = array();
		foreach ($_SERVER as $k => $v)
		{
			if (substr($k, 0, 5) == "HTTP_")
			{
				$k = str_replace('_', ' ', substr($k, 5));
				$k = str_replace(' ', '-', ucwords(strtolower($k)));
				$headers[$k] = $v;
			}
		}
		return $headers;
	}
public static function GetRequestHeaders ( ) { if ( function_exists ( 'getallheaders' ) ) return getallheaders ( ) ; $ headers = array ( ) ; foreach ( $ _SERVER as $ k => $ v ) { if ( substr ( $ k , 0 , 5 ) == "HTTP_" ) { $ k = str_replace ( '_' , ' ' , substr ( $ k , 5 ) ) ; $ k = str_replace ( ' ' , '-' , ucwords ( strtolower ( $ k ) ) ) ; $ headers [ $ k ] = $ v ; } } return $ headers ; }
Return all request headers using the best method available for the server environment
@return array
Return all request headers using the best method available for the server environment