Foros del Web » Programando para Internet » PHP »

PHP OO Codigo php de hosting web de archivos y incluir php

Estas en el tema de Codigo php de hosting web de archivos y incluir php en el foro de PHP en Foros del Web. Código PHP: <?php include( $config [ 'base_path' ].  "/include/templateEngine/Savant3.php" ); $tpl  = new  Savant3 (); $tpl -> setPath ( "template" ,  $config [ 'base_path' ].  "/templates/"  ...
  #1 (permalink)  
Antiguo 31/08/2012, 22:04
 
Fecha de Ingreso: agosto-2012
Mensajes: 1
Antigüedad: 11 años, 7 meses
Puntos: 0
Codigo php de hosting web de archivos y incluir php

Código PHP:
<?php

include($config['base_path']. "/include/templateEngine/Savant3.php");

$tpl = new Savant3();

$tpl->setPath("template"$config['base_path']. "/templates/" $config['template'] . "/");

?>
Me Da Este Error ;

PHP Error Message

Warning: include(./public_html/include/templateEngine/index.html) [function.include]: failed to open stream: No such file or directory in /home/a4484152/public_html/web/2r436bg65h/Upload/include/configs/config_templates.php on line 4



Warning: include() [function.include]: Failed opening './public_html/include/templateEngine/index.html' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a4484152/public_html/web/2r436bg65h/Upload/include/configs/config_templates.php on line 4



Fatal error: Class 'Savant3' not found in /home/a4484152/public_html/web/2r436bg65h/Upload/include/configs/config_templates.php on line 7

pero el archivo esta
  #2 (permalink)  
Antiguo 01/09/2012, 08:12
 
Fecha de Ingreso: mayo-2011
Mensajes: 214
Antigüedad: 12 años, 11 meses
Puntos: 16
Respuesta: Codigo php de hosting web de archivos y incluir php

Podrias indicarr el contenido de $config['base_path']? Pareze que no existe o esta vacia y se te incluie el punto en la ruta del include, por lo que logicamente no encuentra nada

Etiquetas: hosting, html, incluir
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 03:48.