A ver, estoy liadíasima con esto. Mi aplicación es multiidioma. Al inicio de cada página pongo esto...
Código PHP:
<?php
include "cookie_lang.php";
include "incluir_lang.php";
?>
...
HTML
...
En cookie_lang.php
Código PHP:
<?php
if (!isset($_COOKIE['lang'])) {
if ($_COOKIE['lang'] == "EN") {
setcookie("lang", "EN", time () + 604800);
}
else {
setcookie("lang", "ES", time () + 604800); //LINEA 7
}
}
?>
En incluir_lang.php, tengo:
Código PHP:
<?php
if ($_COOKIE['lang'] == "ES")
include "lang/ES/lang.php";
else
if ($_COOKIE['lang'] == "EN")
include "lang/EN/lang.php";
else
include "lang/ES/lang.php";
?>
Cita:
Warning: Cannot modify header information - headers already sent by (output started at c:\....\stats.php:10) in c:\...\cookie_lang.php on line 7
Warning: Cannot modify header information - headers already sent by (output started at c:\...\stats.php:10) in c:\...\cookie_lang.php on line 7
Warning: Cannot modify header information - headers already sent by (output started at c:\...\stats.php:10) in c:\...\cookie_lang.php on line 7