note 88504 added to function.session-start
| From: | psychodays at osu1 dot php dot net | Date: | Tue, 27 Jan 2009 11:05:33 +0000 |
| Subject: | note 88504 added to function.session-start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-149830@lists.php.net to get a copy of this message | ||
The problem happens when you encode a file to utf 8 with BOM. It seems that some text editors or
maybe window appends small invisible characters even before the <?php tag to tell its a utf file.
The solution is to convert to utf-8 without the BOM (Bill of Material "the famous
characters").
An alternative is to append your start_session code in an external include file in ANSI and leave
the following files in utf-8 (not tried)
----
Server IP: 195.221.21.36
Probable Submitter: 212.234.159.65
----
Manual Page -- http://www.php.net/manual/en/function.session-start.php
Edit -- https://master.php.net/note/edit/88504
Del: integrated -- https://master.php.net/note/delete/88504/integrated
Del: useless -- https://master.php.net/note/delete/88504/useless
Del: bad code -- https://master.php.net/note/delete/88504/bad+code
Del: spam -- https://master.php.net/note/delete/88504/spam
Del: non-english -- https://master.php.net/note/delete/88504/non-english
Del: in docs -- https://master.php.net/note/delete/88504/in+docs
Del: other reasons-- https://master.php.net/note/delete/88504
Reject -- https://master.php.net/note/reject/88504
Search -- https://master.php.net/manage/user-notes.php