luxuan969
新手上路

UID 123401
精华
0
积分 4
帖子 2
金钱 4 喜悦币
威望 0
人脉 0
阅读权限 10
注册 2008-5-15
状态 离线
|
关于smarty的出错问题
我的smarty已经配好,开始出现如下这些错误:
Warning: include_once(WEB_ROOT/smarty/comm/Smarty.class.php) [function.include-once]: failed to open stream: No such file or directory in D:\xampp\htdocs\smarty\sjlmSmarty.class.php on line 11
Warning: include_once() [function.include]: Failed opening 'WEB_ROOT/smarty/comm/Smarty.class.php' for inclusion (include_path='.;D:\xampp\php\pear\') in D:\xampp\htdocs\smarty\sjlmSmarty.class.php on line 11
Warning: include_once(WEB_ROOT/adodb/adodb.inc.php) [function.include-once]: failed to open stream: No such file or directory in D:\xampp\htdocs\smarty\sjlmSmarty.class.php on line 12
Warning: include_once() [function.include]: Failed opening 'WEB_ROOT/adodb/adodb.inc.php' for inclusion (include_path='.;D:\xampp\php\pear\') in D:\xampp\htdocs\smarty\sjlmSmarty.class.php on line 12
Warning: include_once(WEB_ROOT/xajax/xajax.inc.php) [function.include-once]: failed to open stream: No such file or directory in D:\xampp\htdocs\smarty\sjlmSmarty.class.php on line 13
Warning: include_once() [function.include]: Failed opening 'WEB_ROOT/xajax/xajax.inc.php' for inclusion (include_path='.;D:\xampp\php\pear\') in D:\xampp\htdocs\smarty\sjlmSmarty.class.php on line 13
Warning: include_once(WEB_ROOT/class/cutword.php) [function.include-once]: failed to open stream: No such file or directory in D:\xampp\htdocs\smarty\sjlmSmarty.class.php on line 14
Warning: include_once() [function.include]: Failed opening 'WEB_ROOT/class/cutword.php' for inclusion (include_path='.;D:\xampp\php\pear\') in D:\xampp\htdocs\smarty\sjlmSmarty.class.php on line 14
Fatal error: Class 'Smarty' not found in D:\xampp\htdocs\smarty\sjlmSmarty.class.php on line 15
之后我把include_once(WEB_ROOT."/smarty/comm/Smarty.class.php");改成了如下:
include_once(..WEB_ROOT."/smarty/comm/Smarty.class.php"); //包含smarty类文件
include_once(..WEB_ROOT."/adodb/adodb.inc.php"); //包含adodbo类文件
include_once(..WEB_ROOT."/xajax/xajax.inc.php");//包含xajax类库
include_once(..WEB_ROOT."/class/cutword.php"); //中文截取函数
上面的错误没有了,但出现了新的错误。
Parse error: syntax error, unexpected '.' in D:\xampp\htdocs\smarty\sjlmSmarty.class.php on line 11
include_once(..WEB_ROOT."/smarty/comm/Smarty.class.php"); //包含smarty类文件
为第十一行。请大家帮我解决一下,非常感谢!!!
|
|