Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/09/2010, 04:00
Avatar de neodani
neodani
 
Fecha de Ingreso: marzo-2007
Mensajes: 1.811
Antigüedad: 17 años, 2 meses
Puntos: 20
Respuesta: Problema web modular en localhost

Encontré el problema, resulta que en mi localhost no tengo permitido los short tags de php y había un layout que le faltaba el tag PHP, linea 12

Código PHP:
Ver original
  1. <html>
  2. <head>
  3.     <title>Tu Sitio Modular</title>
  4.     <basefont color="#FFFFFF" face="Verdana" />
  5. </head>
  6. <body bgcolor="#9999cc">
  7. <?php include('includes/header.html'); ?>
  8. <table width="100%" border="0" cellspacing="1" cellpadding="1">
  9.     <tr>
  10.         <td width="140" bgcolor="#5b69a6">&nbsp;</td>
  11.         <td>
  12. <?
  13.     if (file_exists( $path_modulo )) include( $path_modulo );
  14.     else die('Error al cargar el módulo <b>'.$modulo.'</b>. No existe el archivo <b>'.$conf[$modulo]['archivo'].'</b>');
  15. ?>
  16.         </td>
  17.     </tr>
  18. </table>
  19. <?php include('includes/footer.html'); ?>
  20. </body>
  21. </html>

Un saludo!