note 50260 deleted from function.session-start by nlopess
| From: | nlopess@php.net | Date: | Wed, 23 Feb 2005 11:32:33 +0000 |
| Subject: | note 50260 deleted from function.session-start by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-85418@lists.php.net to get a copy of this message | ||
Note Submitter: tgergely at freemail dot hu
----
Unicode UTF-8 encoded PHP files begin with some invisible extra characters that the interpreter
can't handle correctly: u will always get the two well known nasty warnings even if
session_start() is the very-very first statement.
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent
by ...
You can handle the problem by turning on output buffering somehow, for example globaly in php.ini:
output_buffering = On