I'm getting error when trying to convert from ANSI to UTF-8.
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at mysite.co\index.php:1) in mysite.co\application\controllers\admin.php on line 11
The index
file doesn't contains any spaces or HTML.
<?php
// load the (optional) Composer auto-loader
if (file_exists('vendor/autoload.php')) {
require 'vendor/autoload.php';
}
// load application config (error reporting etc.)
require 'application/config/config.php';
// load application class
require 'application/libs/application.php';
require 'application/libs/parametres.php';
require 'application/libs/controller.php';
require 'application/libs/modules.php';
require 'application/libs/MysqliDb.php';
// start the application
$app = new Application();
?>
If I remove all code and paste session_start()
into the first line, I still get that error.
I need UTF-8 to use different charsets (and not UTF-8 without BOM)
I know that this error can be caused by spaces before <?php
and other chunks of data, but it's clean.
Maybe it could be because of .htaccess
, but I don't know why...
Options -MultiViews
RewriteEngine On
Options -Indexes
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]