蟋蟀
版主
  
村里巡逻队长
UID 67242
精华
0
积分 2009
帖子 1744
金钱 2009 喜悦币
威望 0
人脉 0
阅读权限 100
注册 2005-12-17 来自 福建
状态 离线
|
[推荐阅读] 为什么PHP文件不能接收HTML发过来的POST数据?
$path=realpath(dirname(__FILE__));
$path=substr($path,-1)=="/"?$path path."/";
$path=str_replace("//","/",$path);
define("ROOT_DIR",$path);
define("TPL_DIR",ROOT_DIR."template/");
define("COMP_DIR",ROOT_DIR."templates_c/");
define("CACHE_DIR",ROOT_DIR."cache/");
$tpl=new Smarty;
$tpl->teplate_dir=TPL_DIR;
$tpl->compile_dir=COMP_DIR;
$tpl->cache_dir=CACHE_DIR;
$tpl->left_delimiter=“}”;
$tpl->right_delimiter="{";
?>这样呢?
|  吉林php群
27089230 |
|