Hola a Todos Nuevamente :D
Tengo un archivo que contiene los parámetro para todo el sitio web,
tiene un código como este:
Código PHP:
<?
//////////// OTRAS VARIABLES DEFINIDAS ////////////////
//////////// OTRAS VARIABLES DEFINIDAS ////////////////
//////////// OTRAS VARIABLES DEFINIDAS ////////////////
$emisorcarta = 'Ec Co.';
session_start();
if (isset ($_SESSION["Lenguaje"])){
$nic = $_SESSION["Lenguaje"];
}else{
$host_ip = gethostbyaddr($REMOTE_ADDR);
$nic = substr( $host_ip, (strrpos( $host_ip,".")+1));}
session_destroy();
if ($nic == 'ar'){
include('lg/ar.php');
}elseif ($nic == 'us'){
include('lg/us.php');
}else{
header ("Location: $directorio/selectl.php?msg=1");
}
?>
Y en otro archivo tengo un include que va al código que puse anteriormente.
Pero en la parte superior de la web me sale un error así:
Cita:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/miweb/public_html/sp-error.php:5) in /home/miweb/public_html/conec.php on line 12
¿De que es?