Foros del Web » Programando para Internet » PHP »

No me lee las includes

Estas en el tema de No me lee las includes en el foro de PHP en Foros del Web. No me lee las includes buenas tengo una pregunta que me tiene medio incomodo hace dias por que no se quiere ver mi sitio web ...
  #1 (permalink)  
Antiguo 28/05/2010, 07:50
 
Fecha de Ingreso: noviembre-2009
Mensajes: 11
Antigüedad: 14 años, 5 meses
Puntos: 0
No me lee las includes

No me lee las includes

buenas tengo una pregunta que me tiene medio incomodo hace dias por que no se quiere ver mi sitio web completo, resulta que hace dias cambie de compania que me servia como servicio hosting, pues bien me puse en una nueva ahora ..

el PROBLEMA ESTA , que no me kiere llamar ningunas de las includes! :S

todas estan de esta manera

Código PHP:
<?php include ("header.php");?>
esto me tiene con dolor de cabeza por k nada mas se me be el temple pero nada de lo otro se ve :S

este es el sitio web

www.liquidela.com
  #2 (permalink)  
Antiguo 28/05/2010, 07:55
Avatar de Nekeniehl  
Fecha de Ingreso: julio-2009
Ubicación: Berlin, Alemania / Granada, España
Mensajes: 132
Antigüedad: 14 años, 9 meses
Puntos: 6
Respuesta: No me lee las includes

Prueba a cambiar los includes por
Código PHP:
Ver original
  1. include ("../header.php")
__________________
Antes de cambiar el mundo...dá tres vueltas por tu casa

Usa Google es tu amigo ;)
  #3 (permalink)  
Antiguo 28/05/2010, 07:55
Colaborador
 
Fecha de Ingreso: octubre-2009
Ubicación: Tokyo - Japan !
Mensajes: 3.867
Antigüedad: 14 años, 6 meses
Puntos: 334
Respuesta: No me lee las includes

Código PHP:
Ver original
  1. <?php include("header.php"); ?>
revisa que la ruta este bien del archivo ?
__________________
More about me...
~ @rhyudek1
~ Github
  #4 (permalink)  
Antiguo 28/05/2010, 08:03
 
Fecha de Ingreso: noviembre-2009
Mensajes: 11
Antigüedad: 14 años, 5 meses
Puntos: 0
Respuesta: No me lee las includes

la ruta esta correctamente bien :S no entiendo por k no kieren leerse :S

estan en una carpeta ejemplo mira

esta de esta manera

Código PHP:
<?php include ("..includes/header.php");?>
estan todas en su carpetas bien

ayuda pliz
  #5 (permalink)  
Antiguo 28/05/2010, 08:08
Colaborador
 
Fecha de Ingreso: octubre-2009
Ubicación: Tokyo - Japan !
Mensajes: 3.867
Antigüedad: 14 años, 6 meses
Puntos: 334
Respuesta: No me lee las includes

pero como quieres que adivinemos..
el codigo esta bien pero te da algun error .. algo ?
sin datos es dificil que te digamos alguna solucion
__________________
More about me...
~ @rhyudek1
~ Github
  #6 (permalink)  
Antiguo 28/05/2010, 08:08
Avatar de prodan  
Fecha de Ingreso: junio-2008
Mensajes: 85
Antigüedad: 15 años, 10 meses
Puntos: 0
Respuesta: No me lee las includes

Cita:
Iniciado por cartiel Ver Mensaje
la ruta esta correctamente bien :S no entiendo por k no kieren leerse :S

estan en una carpeta ejemplo mira

esta de esta manera

Código PHP:
<?php include ("..includes/header.php");?>
estan todas en su carpetas bien

ayuda pliz
sacale los primeros dos puntos

Código PHP:
<?php include ("includes/header.php");?>
  #7 (permalink)  
Antiguo 28/05/2010, 09:02
 
Fecha de Ingreso: noviembre-2009
Mensajes: 11
Antigüedad: 14 años, 5 meses
Puntos: 0
Respuesta: No me lee las includes

no no me da error ni nada! solo k no aparece na! en blanco solo me aparece la temple pero sin el contenido ! por k tengo todo en includes que jalan desde una carpeta llamada por ese mismo nombre! no entiendo por k no me kiere funcionar :S

tambien e intentando llamarla de esta manera y nada de nada
Código PHP:
<?php echo file_get_contents("http://www.liquidela.com/include/fin_footer.php"); ?>
  #8 (permalink)  
Antiguo 28/05/2010, 09:12
 
Fecha de Ingreso: noviembre-2009
Mensajes: 11
Antigüedad: 14 años, 5 meses
Puntos: 0
Respuesta: No me lee las includes

esta es mi index.php

las includes estan llamando perfecta pero no se por k no se me ben en la pagina tan en su carpeta bien y la direccion esta bien todo creo k esta bien no me da error ni na solo k no se ben :S

este es un ejemplo

miren

www.liquidela.com

Código PHP:
<!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" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Reciba Ayuda Con Sus Deudas de Tarjeta de Credito, Prestamos Personales y Sus Deudas No Aseguradas. Someta Su Informaci&oacute;n de Contacto</title>
<SCRIPT LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=320,height=240');");
}
</script>
</head>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-10894633-1");
pageTracker._trackPageview();
} catch(err) {}</script>
<style type="text/css">
.Estilo30 {color: #666666}
a:link {
    color: #FFFFFF;
    text-decoration: none;
}
a:hover {
    color: #FFFFFF;
    text-decoration: none;
}
a:visited {
    color: #FFFFFF;
    text-decoration: none;
}
a:active {
    color: #FFFFFF;
    text-decoration: none;
}
.Estilo31 {    font-family: Geneva, Arial, Helvetica, sans-serif;
    font-size: 10px;
    color: #006666;
}
.Estilo32 {color: #086892}
.Estilo33 {color: #BAD0FC}
</style>
</head>
<body>
<script type="text/javascript">

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");

document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

</script>

<script type="text/javascript">

try {

var pageTracker = _gat._getTracker("UA-11631670-1");

pageTracker._trackPageview();

} catch(err) {}</script>
<script type="text/javascript" src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php"></script>
  <script type="text/javascript">
   FB.init("fbc36122debf644c18daf446540195a5","xd_receiver.htm");
</script>
<table width="892" border="0" align="center" cellpadding="0" cellspacing="0">

  <tr>

    <td width="815"><table width="234" border="0" cellspacing="0">
      <tr>
        <td width="21" height="39" valign="bottom"><fb:profile-pic uid="loggedinuser" size="square" facebook-logo="true"></fb:profile-pic></td>
        <td width="133" valign="top"><table width="579" height="50" border="0" align="right" cellspacing="0" background="fb_bg.jpg">
            <tr>
              <td valign="top"></td>
            </tr>
            <tr>
              <td valign="top"><fb:name uid="loggedinuser" useyou="false" linked="true"></fb:name></td>
            </tr>
        </table></td>
      </tr>
    </table></td>

    <td width="87"><div align="center" class="Estilo31">

      <div align="right" class="Estilo32"><a href="http://www.liquidela.com/e/index.php"><img src="http://www.liquidela.net/e/englishidioma.jpg" width="80" height="15" border="0" /></a></div>

    </div></td>

    <td width="87"><a href="http://www.liquidela.com"><img src="http://www.liquidela.net/e/idioma.jpg" width="80" height="15" border="0" /></a></td>

  </tr>

</table>

<table width="900" border="0" align="center" cellpadding="0" cellspacing="1">

  <tr>

    <td height="100" valign="top" background="headerd.jpg"><div align="right"></div></td>

  </tr>

  <tr>

    <td height="19" valign="top" bgcolor="#FFFFFF"><div align="right" class="Estilo30"><?php include ("../include/top_web.cgi");?></td>

  </tr>

  <tr>

    <td height="672"><table width="898" height="672" border="0" align="center" cellpadding="0" cellspacing="1">

      <tr>

        <td width="896" height="91"><table border="0" cellpadding="0" cellspacing="0" width="893">

          <tr>

            <td><img src="../e/spacer.gif" width="7" height="1" border="0" alt="" /></td>

            <td><img src="../e/spacer.gif" width="878" height="1" border="0" alt="" /></td>

            <td><img src="../e/spacer.gif" width="8" height="1" border="0" alt="" /></td>

            <td><img src="../e/spacer.gif" width="1" height="1" border="0" alt="" /></td>

          </tr>

          <tr>

            <td colspan="3"><img name="tabla2htm_r1_c1" src="tabla2htm_r1_c1.jpg" width="893" height="24" border="0" id="tabla2htm_r1_c1" alt="" /></td>

            <td><img src="../e/spacer.gif" width="1" height="24" border="0" alt="" /></td>

          </tr>

          <tr>

            <td rowspan="2"><img name="tabla2htm_r2_c1" src="tabla2htm_r2_c1.jpg" width="7" height="543" border="0" id="tabla2htm_r2_c1" alt="" /></td>

            <td align="center" valign="top"><table width="866" height="347" border="0" align="center" cellpadding="0" cellspacing="0">

              <tr>

                <td width="511" height="347" valign="top"><table width="508" height="347" border="0" cellpadding="0" cellspacing="0">

                  <tr>

         <td width="152" height="347" valign="top"><?php echo file_get_contents("http://liquidela.com/include/menu.php"); ?>

                      <div align="center"></div></td>

                    <td width="335" valign="top"><div align="center">

                      <div align="center"><?php echo file_get_contents("http://liquidela.com/include/centro_home.php");   ?>                      </div>                      </tr>

                </table>                

                <td width="355" valign="top"><div align="center"><?php echo file_get_contents("http://liquidela.com/include/contac.php");   ?></div></td>

              </tr>

            </table>

              <td rowspan="2"><img name="tabla2htm_r2_c3" src="tabla2htm_r2_c3.jpg" width="8" height="543" border="0" id="tabla2htm_r2_c3" alt="" /></td>

            <td><img src="../e/spacer.gif" width="1" height="535" border="0" alt="" /></td>

          </tr>

          <tr>

            <td height="8"><img name="tabla2htm_r3_c2" src="tabla2htm_r3_c2.jpg" width="878" height="8" border="0" id="tabla2htm_r3_c2" alt="" /></td>

            <td><img src="../e/spacer.gif" width="1" height="8" border="0" alt="" /></td>

          </tr>

        </table></td>

      </tr>

      <tr>

        <td height="101"><table border="0" cellpadding="0" cellspacing="0" width="893">

          <!-- fwtable fwsrc="Sin t&iacute;tulo" fwbase="foter.jpg" fwstyle="Dreamweaver" fwdocid = "1936052822" fwnested="0" -->

          <tr>
            <td><img src="../e/spacer.gif" width="13" height="1" border="0" alt="" /></td>
            <td><img src="../e/spacer.gif" width="867" height="1" border="0" alt="" /></td>
            <td><img src="../e/spacer.gif" width="13" height="1" border="0" alt="" 
            <td><img src="../e/spacer.gif" width="1" height="1" border="0" alt="" 
            <td colspan="3"><img name="foter_r1_c1" src="foter_r1_c1.jpg" width="893" height="14" border="0" id="foter_r1_c1" alt="" />            </td>
            <td><img src="../e/spacer.gif" width="1" height="14" border="0" alt="" /

            <td rowspan="2"><img src="foter_r2_c1.jpg" width="13" height="86" />

            <td><p align="center"><?php echo file_get_contents("http://www.liquidela.com/include/footer_home.php"); ?>

            <td rowspan="2" background="../e/foter_r2_c3.jpg"><img src="foter_r2_c3.jpg" width="13" height="86" /></td>
            <td><img src="../e/spacer.gif" width="1" height="71" border="0" alt="" /></td>
            <td height="15"><img src="foter_r3_c2.jpg" width="867" height="15" /></td>
            <td><img src="../e/spacer.gif" width="1" height="15" border="0" alt="" /></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr></table>
<div align="center"><?php echo file_get_contents("http://www.liquidela.com/include/fin_footer.php"); ?></div>
</body>
</html>
  #9 (permalink)  
Antiguo 28/05/2010, 09:30
Avatar de Nekeniehl  
Fecha de Ingreso: julio-2009
Ubicación: Berlin, Alemania / Granada, España
Mensajes: 132
Antigüedad: 14 años, 9 meses
Puntos: 6
Respuesta: No me lee las includes

A mi la pagina liquidela.com se me ve bien xD.

Por otro lado, si ya has probado las distintas maneras que te hemos indicado de poder hacer includes....nose me ocurre donde puede estar el fallo

Suerte
__________________
Antes de cambiar el mundo...dá tres vueltas por tu casa

Usa Google es tu amigo ;)
  #10 (permalink)  
Antiguo 28/05/2010, 10:57
 
Fecha de Ingreso: noviembre-2009
Mensajes: 11
Antigüedad: 14 años, 5 meses
Puntos: 0
Respuesta: No me lee las includes

si ya yo la he arrreglado por todo lados encontre el problemas casi

Etiquetas: includes
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 14:07.