Re: Response headers
| From: | Rasmus Lerdorf | Date: | Wed, 10 Jul 2002 16:22:38 +0000 |
| Subject: | Re: Response headers | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-85893@lists.php.net to get a copy of this message | ||
Grab one of the recent CVS snapshots. You will find an
apache_response_headers() function.
-Rasmus
On Wed, 10 Jul 2002, Cristi Dumitrescu wrote:
> Hi,
>
> Is there any way to see the outgoing headers for a PHP document? I mean not
> only the headers I add via header(), but also the headers added by default
> by apache, such as Keep-Alive, Connection, Content etc.
> I need to count them and compute a traffic report for each PHP served and so
> far I've been able to do it fairly easy with the request headers, but as far
> as I could see, there is no way to read the outgoing headers in PHP.
> It would be really useful if someone would implement something like this in
> PHP and I suppose it's not that hard, given the fact that there already is a
> server_context->headers_out, at least for apache.
> Additionally, no idea if this is a bug or not, php_info() reports only a
> single response header (X-Powered-By) if called within a ob_start();
> ob_end_*(); block.
> Please include me on CC if you answer, as I am not subscribed to the list.
>
> Thanks,
> Cristi
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>