include_path, document_root, etc..

From: Date: Mon, 18 Apr 2005 19:43:46 +0000
Subject: include_path, document_root, etc..
Groups: php.general.es 
Request: Send a blank email to general-es+get-54242@lists.php.net to get a copy of this message
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 (#54242) next »