Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/03/2006, 14:10
samuel2005
 
Fecha de Ingreso: marzo-2005
Mensajes: 49
Antigüedad: 19 años, 1 mes
Puntos: 2
Problema con include

Quiero hacer un menu en ajax segun este tutorial

Pero no me funciona
me tira este error cuando quiero ejecutarlo:
...Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /public_html/ajax/include.php on line 13



-------- este es el codigo que tengo
<?php

$pagina = addslashes((string) $_GET['variable']);

if(!isset($pagina))
{
include('main.php');
}
else if ((string) $pagina && is_string($pagina))
{
if(file_exists('.$pagina.'.php'))
{
include('.$pagina.'.php'); <<------ EL ERROR ME TIRA EN ESTA LINEA
}
else
{
die("que paso bitch");
}
}

?>