tags:

views:

56

answers:

2

I have recently changed my editor to save int UTF-8. This started poping out afterwards and don't 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
+1  A: 

You need to call session_start() before ANY output is sent to the browser.

karim79
<?php session_start(); this is how i have it now. Absolutly no space before <?php
Babiker
Jon's answer is spot on.
karim79
+10  A: 

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

Because that marker appears before any <?php tags, PHP automatically sent it to the browser, including the necessary headers.

Unless your PHP can be compiled with the experimental (--enable-zend-multibyte) option, it can't be helped. You'll just have to tell your editor not to write that marker.

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

Jon Benedicto
+1 I did not know that, very useful indeed.
karim79