note 107615 added to function.session-start

From: Date: Wed, 22 Feb 2012 02:24:19 +0000
Subject: note 107615 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-186267@lists.php.net to get a copy of this message
It's been mentioned here a few times before, although not totally explicitly. The beginning of the PHP code containing session_start() must occur before any HTML output is made to the browser. This means that even a single space before the "<?PHP" will cause session_start() not to work. See also the note below about the spaces added at the beginning of a file by some text editors. ---- Server IP: 69.147.83.197 Probable Submitter: 24.136.32.6 ---- Manual Page -- http://www.php.net/manual/en/function.session-start.php Edit -- https://master.php.net/note/edit/107615 Del: integrated -- https://master.php.net/note/delete/107615/integrated Del: useless -- https://master.php.net/note/delete/107615/useless Del: bad code -- https://master.php.net/note/delete/107615/bad+code Del: spam -- https://master.php.net/note/delete/107615/spam Del: non-english -- https://master.php.net/note/delete/107615/non-english Del: in docs -- https://master.php.net/note/delete/107615/in+docs Del: other reasons-- https://master.php.net/note/delete/107615 Reject -- https://master.php.net/note/reject/107615 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#186267) next »