急!!!在线等 Warning: Smarty error: unable to read resource: "admin/login.html" in F:\web\common\smarty\Smarty.class.php on line 1092 怎么解决?? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 admin/login.html 没有这个文件。读不到 admin/login.html 是有的呀 权限不够 是怎么理解? <?php include("admin.global.php"); if(isset($_POST[username])) { $username=$_POST['username']; $pwd=$_POST['pwd']; $checkcode=$_POST['checkcode']; $site_url= SITE_URL."admin/login.php"; if(empty($username)){ $login_action->get_admin_msg($site_url,$LANG['us_empty']); } else if(empty($password)){ $login_action->get_admin_msg($site_url,$LANG['ps_empty']); } else if(empty($checkcode)){ $login_action->get_admin_msg($site_url,$LANG['code_empty']); } else { $login_action->get_user_login($username,$password,$checkcode); } } $check=$login_action->checkcode('checkcodestr', 8);$smarty->assign("check",$check); $smarty->display("admin/login.html");?>=======================================templates/admin/login.html这样没有错吧 在Dreamweaver下光标移动到$smarty->display("admin/login.html");的“”中间,然后按ctrl+d。如果打开了说明路径对了。提示错误则路径错了。admin/login.html表示在你这个文件的同层次有个admin的文件夹哦~你确定有吗? admin/login.html表示在你这个文件的同层次有个admin的文件夹哦~你确定有吗?--->>>确定是有的 配置文件1$smarty_template_dir = __WEB_ROOT."/tamplates/";$smarty_compile_dir = __WEB_ROOT."/templates_c/";$smarty_config_dir = __WEB_ROOT."/configs/";$smarty_cache_dir = __WEB_ROOT."/cache/";$smarty_caching =false;$smarty_delimiter =explode("|","{|}");===============================================define('__WEB_ROOT', dirname(__FILE__)."/./.."); 包含配置文件1include __WEB_ROOT."/common/smarty/Smarty.class.php";$smarty = new smarty();$smarty->template_dir = $smarty_template_dir;$smarty->compile_dir = $smarty_compile_dir;$smarty->config_dir = $smarty_config_dir;$smarty->cache_dir = $smarty_cache_dir;$smarty->caching = $smarty_caching;$smarty->left_delimiter = $smarty_delimiter[0];$smarty->right_delimiter = $smarty_delimiter[1];我觉得是配置文件出了问题 但是不知道怎么改了 ? require_once调用文件问题 菜鸟向大家请教个问题 新作网站,我这样的水平出去能找到多少钱一个月的工作啊? smarttemplate使用遇到难题了,在一个循环中,又要为图片附值,但是$users数组中并没有imgdir这个键值,这种情况下,是怎样为图片路径{im 一个数组比较的问题 Mysql 鏈接問題 乱码 急:求助:php怎么windows2000下的oracle建立连接?急! 出错了,请帮忙调试一下..谢谢 请教,如何配置使warning警告信息不再显示。 如何写HTML,让按钮触发事件运行服务器端的一个.php文件 php 定义调用 语言包
include("admin.global.php");
if(isset($_POST[username]))
{
$username=$_POST['username'];
$pwd=$_POST['pwd'];
$checkcode=$_POST['checkcode'];
$site_url= SITE_URL."admin/login.php";
if(empty($username)){
$login_action->get_admin_msg($site_url,$LANG['us_empty']);
}
else if(empty($password)){
$login_action->get_admin_msg($site_url,$LANG['ps_empty']);
}
else if(empty($checkcode)){
$login_action->get_admin_msg($site_url,$LANG['code_empty']);
}
else
{
$login_action->get_user_login($username,$password,$checkcode);
}
}
$check=$login_action->checkcode('checkcodestr', 8);$smarty->assign("check",$check);
$smarty->display("admin/login.html");
?>
=======================================
templates/admin/login.html
这样没有错吧
的“”中间,然后按ctrl+d。如果打开了说明路径对了。提示错误则路径错了。
admin/login.html表示在你这个文件的同层次有个admin的文件夹哦~你确定有吗?
--->>>确定是有的
$smarty_template_dir = __WEB_ROOT."/tamplates/";
$smarty_compile_dir = __WEB_ROOT."/templates_c/";
$smarty_config_dir = __WEB_ROOT."/configs/";
$smarty_cache_dir = __WEB_ROOT."/cache/";
$smarty_caching =false;
$smarty_delimiter =explode("|","{|}");
===============================================
define('__WEB_ROOT', dirname(__FILE__)."/./..");
包含配置文件1
include __WEB_ROOT."/common/smarty/Smarty.class.php";
$smarty = new smarty();
$smarty->template_dir = $smarty_template_dir;
$smarty->compile_dir = $smarty_compile_dir;
$smarty->config_dir = $smarty_config_dir;
$smarty->cache_dir = $smarty_cache_dir;
$smarty->caching = $smarty_caching;
$smarty->left_delimiter = $smarty_delimiter[0];
$smarty->right_delimiter = $smarty_delimiter[1];我觉得是配置文件出了问题 但是不知道怎么改了 ?