Re: include_path, document_root, etc..

From: Date: Tue, 19 Apr 2005 02:58:47 +0000
Subject: Re: include_path, document_root, etc..
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-54243@lists.php.net to get a copy of this message
Segun tu codigo: require("smarty\libs\Smarty.class.php"); Deberias tener la clase Smarty.class.php en uno de los siguientes directorio debido a tu include: C:\php5\pear o en el . Te recomiendo que copies la libreria Smarty.class.php en c:\php5\smarty\libs\ y en el php.ini modifiques el include_path include_path='.;C:\php5\pear;c:\php5\smarty\libs\ Luego el require deberia ser asi de facil require("Smarty.class.php"); Saludes, Ferran Orsola Matias Salimbene wrote:
Hola muchachos, estaba experimentando con Smarty pero no pude hacer mucho debido a un error, lo siguiente: ******************************************************************************** Warning: main(smarty\libs\Smarty.class.php): failed to open stream: No such file or directory in C:\Desarrollo\html\_debug_tmp.php on line 2 Fatal error: main(): Failed opening required 'smarty\libs\Smarty.class.php' (include_path='.;C:\php5\pear') in C:\Desarrollo\html\_debug_tmp.php on line 2 ******************************************************************************** este es scipt: <?php require("smarty\libs\Smarty.class.php"); $smarty = new Smarty; $smarty->template_dir="c:\desarrollo\smarty\template_dir"; $smarty->cache_dir="c:\desarrollo\smarty\cache_dir"; $smarty->compile_dir="c:\desarrollo\smarty\compile_dir"; $smarty->config_dir="c:\desarrollo\smarty\config_dir"; $smarty->assign("name", "Jason Gilmore"); $smarty->assign("title", "Smarty Rocks!"); $smarty->display("index.tpl"); ?> otros datos: ; UNIX: "/path1:/path2" ;include_path = ".:/php/includes" ; ; Windows: "\path1;\path2" include_path = ".;\php5\includes" document:_root="c:\desarrollo\html" espero me puedan dar una mano, saludos!


« previous php.general.es (#54243) next »