note 50260 added to function.session-start

From: Date: Wed, 23 Feb 2005 10:39:22 +0000
Subject: note 50260 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-85407@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/function.session-start.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50260 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50260&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50260&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50260&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50260&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50260&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50260&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#85407) next »