note 22074 deleted from function.header by victor
| From: | victor@php.net | Date: | Wed, 28 Aug 2002 06:34:43 +0000 |
| Subject: | note 22074 deleted from function.header by victor | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-35829@lists.php.net to get a copy of this message | ||
in response to henst374@student.liu.se and twocandles3000@hotmail coments about not being able to
send header information after including a primitive function:
I found this after digging through the php.ini file:
"Output buffering allows you to send header lines (including cookies) even after you send body
content, at the price of slowing PHP's output layer a bit. You can enable output buffering
during runtime by calling the output buffering functions. You can also enable output buffering for
all files by setting this directive to On. If you wish to limit the size of the buffer to a certain
size - you can use a maximum number of bytes instead of 'On', as a value for this
directive (e.g., output_buffering=4096).
output_buffering = Off"
I had the same problem as the other two, so I fixed it by using the output buffering funcitons when
ever I needed to send a header...
Hope this helps!