Re: When are headers sent? (headers_sent function)
| From: | Robert Cummings | Date: | Fri, 09 Feb 2007 19:45:39 +0000 |
| Subject: | Re: When are headers sent? (headers_sent function) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248686@lists.php.net to get a copy of this message | ||
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.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'