急!!!在线等 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];我觉得是配置文件出了问题 但是不知道怎么改了 ? 有没有匹配url但除了图片之外的正则表达式? 使用curl模拟post数据出现“未将对象引用设置到对象的实例”错误 正则怎么写呢 现在流行的php框架有哪些 能帮我看一个location的问题么? 关于用表格发送Email的问题!!! 关于一个域名两个主机之间cookie的问题 如何使用其他程序向网站的php程序提交数据 能不能控制 <input type=text> 框中的字符 居中 ,居右? 字符串 替换 如何写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];我觉得是配置文件出了问题 但是不知道怎么改了 ?