note 12587 deleted from function.include by vincent
| From: | vincent@php.net | Date: | Mon, 08 Sep 2003 15:09:18 +0000 |
| Subject: | note 12587 deleted from function.include by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-55841@lists.php.net to get a copy of this message | ||
Note Submitter: DanRichter.at.programmer.dot.net
----
Make sure none of your library files begin or end with a blank line, at least if you ever want to
use cookies or other headers. Otherwise, you will get errors like this:
Warning: Cannot send session cache limiter - headers already sent
That's because even though you may consider the include file just a library, Apache considers
it a source of HTML, so that blank line will be the first line of the document. Then when you get
around to setting the cookie or header, Apache can't do it because it's already started
sending the body.