Ver Mensaje Individual
  #11 (permalink)  
Antiguo 23/05/2012, 01:56
Maikol86
 
Fecha de Ingreso: mayo-2012
Mensajes: 21
Antigüedad: 12 años
Puntos: 1
Respuesta: Problema includes

Hola otra vez jotaincubus, dime que estoy haciendo mal, este es un archivo ejemplo y tambien me da el mismo error:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
</head>

<body>

<?php
session_start();
$_SESSION['idioma_s'];
if(isset($_GET['lg'])){
$_SESSION['idioma_s']=$_GET['lg'];
}
$lg=$_SESSION['idioma_s'];
if($lg=="es" ||$lg=="en" ||$lg=="vl"){
include($lg.".inc.php");
}
else{
$lg="es";
include($lg.".inc.php");
}
?>
</body>
</html>