喜悦国际村 
» 游客:  注册 | 登录 | 搜索 | 统计 | 帮助

RSS 订阅当前论坛  

喜悦证交所已经关闭

上一主题 下一主题
     
标题: [问题] 关于smarty的出错问题  
 
luxuan969
新手上路
Rank: 1



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类文件
为第十一行。请大家帮我解决一下,非常感谢!!!
2008-5-15 12:28 PM#1
查看资料  发短消息  顶部
 
wanghaozi
新手上路
Rank: 1



UID 93550
精华 0
积分 2
帖子 2
金钱 2 喜悦币
威望 0
人脉 0
阅读权限 10
注册 2007-5-24
状态 离线
[推荐阅读] 真的强人,9号就知道要地震了!
Smarty.class.php 的位置错误 还有 sjlmSmarty.class.php的15行附近看看有没有语法错误
2008-5-15 03:03 PM#2
查看资料  Blog  发短消息  顶部
 
luxuan969
新手上路
Rank: 1



UID 123401
精华 0
积分 4
帖子 2
金钱 4 喜悦币
威望 0
人脉 0
阅读权限 10
注册 2008-5-15
状态 离线
[推荐阅读] 网站发布,常见问题!!!
我把smarty.class.php放在了D:\xampp\htdocs\smarty里了,因该没错吧?第15行到第20行:
class sjlmSmarty extends Smarty
{
        var $conn;
        var $ajax;
        var $ajaxr;
    function sjlmSmarty()
2008-5-15 05:38 PM#3
查看资料  发短消息  顶部
 
dzjzmj
中级会员
Rank: 3Rank: 3
老会员



UID 25675
精华 0
积分 363
帖子 556
金钱 363 喜悦币
威望 0
人脉 0
阅读权限 30
注册 2004-1-9
来自 福建福州
状态 离线
[推荐阅读] 北京 高薪诚聘PHP程序员
WEB_ROOT这个常量定义吧



PHP代码教程,一个留言本引发的教程http://coderhome.net/
2008-5-15 09:32 PM#4
查看资料  访问主页  发短消息  QQ . .   顶部
     


  可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题 | 开通个人空间  


 




Powered by Discuz! 6.1.0  © 2001-2010 Comsenz Inc.
Processed in 0.022899 second(s), 6 queries

(冀ICP备05009913号) 管理员:sadly 邮箱/MSN: sadly@phpx.com QQ:824008(长隐) 清除 Cookies - - Archiver - WAP