主程序代码:require_once TG_ROOT.'./include/smarty.class.php';
require_once TG_ROOT.'./include/global.func.php';if ($a=="") {
message("访问无效!","index.php","2");
}在global.func.php中定义了函数:function message($info, $jumppath, $sec) {
$smarty->assign("message",$info);#此行是global.func.php中的第41行
$smarty->assign("url",$jumppath);
$smarty->assign("second",$sec);
$smarty->display("$dfenstyle/message.htm","$info$jumppath");
exit;
}在运行主程序时,提示:
Fatal error: Call to a member function on a non-object in e:\wwwroot\iyahoo\wwwroot\include\global.func.php on line 41
require_once TG_ROOT.'./include/global.func.php';if ($a=="") {
message("访问无效!","index.php","2");
}在global.func.php中定义了函数:function message($info, $jumppath, $sec) {
$smarty->assign("message",$info);#此行是global.func.php中的第41行
$smarty->assign("url",$jumppath);
$smarty->assign("second",$sec);
$smarty->display("$dfenstyle/message.htm","$info$jumppath");
exit;
}在运行主程序时,提示:
Fatal error: Call to a member function on a non-object in e:\wwwroot\iyahoo\wwwroot\include\global.func.php on line 41
解决方案 »
- 急!Facebook counter 怎样让count显示出来 即使他小于3!
- java使用AES加密后的值,如何用php解密?
- 求助。急。大位帅哥们和美女们帮帮看看。
- apache上已经安装缓存插件(eAccelerator),还有必要再生成php缓存文件吗?
- 缓存某个查询结果5秒钟,不知道有没有意义?
- 用php从oracle里取blob数据,直接浏览,关闭时,出现“WINWORD发生错误,将被关闭”的错误,为什么?
- php字符串截取
- [求助][急]关于SQL语句优化
- 高难!高难!!!
- 各位大大,请问如何在没有独立主机情况下实现mysql的中文全文搜索呢
- 谁能帮我看看这段PHP代码怎么写吗?
- 已经分了词,建了FULLTEXT,把ft_min_len_word也设为2,但全文搜索还是不能支持中文
或在函数 message 中声明 global $smarty