Re: How to Access HTTP headers in IIS?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



See if this gets you what you need:

function emu_getallheaders() {
   foreach($_SERVER as $h=>$v)
       if(ereg('HTTP_(.+)',$h,$hp))
           $headers[$hp[1]]=$v;
   return $headers;
}

It was posted not too long ago here:
http://us2.php.net/manual/en/function.getallheaders.php

Hope that helps.
Shinan

On 5/17/05, Wu, Jin Yong <jinyong.wu@xxxxxxxxxxxxx> wrote:
> 
> Dear all,
> 
> I'm encountering a problem how to access HTTP headers in IIS.
> I know there is a function getallheaders() for Apache, but what about IIS?
> Does anyone have any idea? Thank you so much in advance!
> 
> Yong
> 2005/5/17
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
Shinan S. Kassam

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux