5
Does anyone know what this Warning might be?
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at *caminho*) in *caminho* on line 2
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at *caminho*) in *caminho* on line 2
The only thing found on this line 2 of the file is:
session_start();
Grateful from now on!
As requested by posting the file index php.:
<?php
session_start();
require("require/config.php");
require(REQUIRE_PATH . "db.php");
require(CLASS_PATH . "class.login.php");
if(isset($_GET["url"]) && !empty($_GET["url"])){
$url = $_GET["url"];
if(in_array($url, $config["secure_pages"])){
$file = INCLUDE_PATH . $url . ".php";
if(file_exists($file)){
include($file);
} else{
include(INCLUDE_PATH . "home.php");
}
} else{
include(INCLUDE_PATH . "home.php");
}
} else{
include(INCLUDE_PATH . "home.php");
}
}
I suspect that the file in question has a GOOD UTF-8 at the beginning. Try saving the file as ASCII or UTF-8 without BOM.
– luiscubal
Related question: http://answall.com/questions/4251/erro-do-php-cannot-modify-header-information. It is actually the same question, and the answer there clarifies your problem. But the answer here is so good I don’t know if I should dial as duplicate.
– bfavaretto