note 22074 added to function.header
| From: | chrisshaffer at bellsouth dot net | Date: | Wed, 05 Jun 2002 17:17:58 +0000 |
| Subject: | note 22074 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31500@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!
--
http://www.php.net/manual/en/function.header.php
http://master.php.net/manage/user-notes.php?action=edit+22074
http://master.php.net/manage/user-notes.php?action=delete+22074
http://master.php.net/manage/user-notes.php?action=reject+22074