Foros del Web » Programando para Internet » PHP »

no carga mi index.php

Estas en el tema de no carga mi index.php en el foro de PHP en Foros del Web. Tengo un problema con mi pagina web www.swedten.com antes funcionaba correctamente, pero sucede que hoy en dia no me carga el index.php, solo las imagenes ...
  #1 (permalink)  
Antiguo 02/07/2012, 23:58
 
Fecha de Ingreso: julio-2012
Mensajes: 1
Antigüedad: 11 años, 9 meses
Puntos: 0
no carga mi index.php

Tengo un problema con mi pagina web www.swedten.com antes funcionaba correctamente, pero sucede que hoy en dia no me carga el index.php, solo las imagenes pero no el contenido, soy muy novato en esto del php el index esta codificado de esta manera,

<?
$lk = htmlentities($_GET["lk"]);
$vars = explode("/", $lk);

include_once "config.inc.php";
include_once PATH_ABSOLUTE."clases/enlaces.class.php";

$obj = new Enlaces();
$obj->enlaces = $config["enlaces"];
$obj->subenlaces = $config["subenlaces"];
$obj->vars = $vars;

/** Carga metadatos **/
$meta_tmp = $obj->getMetadatos();

if($meta_tmp) $meta = $meta_tmp;

/** Carga Subenlaces desde Config.inc **/
$aLink = $obj->dameLinks();
$html_links = $aLink["html"];
$ruta = $aLink["ruta"];

include "header.view.php";
include "menu.view.php";
?>
<div id="main">

<div id="sitebar">
<? include PATH_ABSOLUTE."sitebar.view.php"; ?>
</div>

<div class="cont_background">

<div id="content">

<div class="html">

<div style="font-weight:bold"><?=$ruta?></div>
<?

/* Definir el Content*/

if(is_file(PATH_ABSOLUTE_HTML.$meta["fichero"]))
{

include PATH_ABSOLUTE_HTML.$meta["fichero"];
}
else
{

include PATH_ABSOLUTE_HTML."portada.php";
}
?>


</div>

</div>

</div>

<br clear="both">

<div id="content_end"></div>

</div>
<?

include "footer.view.php";


?>

que funciona con un index.html
que supongo jala al index.php y que esta de esta manera codificada

<html>
<head>
<title>index</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- ImageReady Styles (index.psd) -->
<style type="text/css">
<!--

#Table_01 {
position:absolute;
left:0px;
top:0px;
width:1020px;
height:1020px;
}

#index-menu-sup {
position:absolute;
left:0px;
top:0px;
width:1020px;
height:44px;
}

#index-header-left {
position:absolute;
left:0px;
top:44px;
width:374px;
height:232px;
}

#index-logo {
position:absolute;
left:374px;
top:44px;
width:256px;
height:232px;
}

#index-header-right {
position:absolute;
left:630px;
top:44px;
width:390px;
height:232px;
}

#index-menu {
position:absolute;
left:0px;
top:276px;
width:1020px;
height:54px;
}

#index-sitebar-left {
position:absolute;
left:0px;
top:330px;
width:280px;
height:451px;
}

#index-sitebar-right {
position:absolute;
left:280px;
top:330px;
width:740px;
height:451px;
}

#index-content-end {
position:absolute;
left:0px;
top:781px;
width:1020px;
height:61px;
}

#index-footer {
position:absolute;
left:0px;
top:842px;
width:1020px;
height:178px;
}

-->
</style>
<!-- End ImageReady Styles -->
</head>
<body style="background-color:#FFFFFF; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px;">
<!-- ImageReady Slices (index.psd) -->
<div id="Table_01">
<div id="index-menu-sup">
<img src="images/index_menu_sup.jpg" width="1020" height="44" alt="">
</div>
<div id="index-header-left">
<img src="images/index_header_left.jpg" width="374" height="232" alt="">
</div>
<div id="index-logo">
<img src="images/index_logo.jpg" width="256" height="232" alt="">
</div>
<div id="index-header-right">
<img src="images/index_header_right.jpg" width="390" height="232" alt="">
</div>
<div id="index-menu">
<img src="images/index_menu.jpg" width="1020" height="54" alt="">
</div>
<div id="index-sitebar-left">
<img src="images/index_sitebar_left.jpg" width="280" height="451" alt="">
</div>
<div id="index-sitebar-right">
<img src="images/index_sitebar_right.jpg" width="740" height="451" alt="">
</div>
<div id="index-content-end">
<img src="images/index_content_end.jpg" width="1020" height="61" alt="">
</div>
<div id="index-footer">
<img src="images/index_footer.jpg" width="1020" height="178" alt="">
</div>
</div>
<!-- End ImageReady Slices -->
</body>
</html>


desearia ayuda urgente..
saludos
Luis
  #2 (permalink)  
Antiguo 03/07/2012, 08:58
Avatar de GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 10 meses
Puntos: 2135
Respuesta: no carga mi index.php

Prueba usar tags de apertura completos, en lugar de <? usa <?php

Saludos.

Etiquetas: Ninguno
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 09:44.