note 107615 deleted from function.session-start by tularis
| From: | tularis@php.net | Date: | Wed, 22 Feb 2012 21:01:42 +0000 |
| Subject: | note 107615 deleted from function.session-start by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-186290@lists.php.net to get a copy of this message | ||
Note Submitter: Art
----
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.