$ _SESSION problem

I recently changed my editor to save int UTF-8. It began to appear after that and does not know what it means.

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/sudancar/public_html/index.php:1) in /home/sudancar/public_html/index.php on line 1
+3
source share
2 answers

Your editor most likely wrote a specification (Byte-Order-Marker) to indicate that the file is UTF-8.

Since this token appears before any tags <?php, PHP automatically sends it to the browser, including the necessary headers.

If your PHP cannot be compiled using the experimental (--enable-zend-multibyte) option, this will not help. You just need to tell your editor that he does not write this marker.

For reference: http://bugs.php.net/bug.php?id=22108

+12
source

session_start(), .

+1

Source: https://habr.com/ru/post/1708496/


All Articles