Re: When are headers sent? (headers_sent function)

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

 



Robert Cummings wrote:
> On Fri, 2007-02-09 at 11:24 -0800, Philippe Piernot wrote:
>> I understand that the headers_sent() function will tell me whether headers
>> have been sent or not.
>> What I do not understand is what triggers the headers to be sent to the
>> browser in the first place.
>> Does this happen as soon as the first output occurs?
> 
> Probably. Unless you have output buffering enabled, in which case
> headers are sent when the PHP process completes.

or whenever the outer most output buffer is flushed [to the client]
- whichever comes first.

> 
> Cheers,
> Rob.

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux