呵呵,什么原因不好解说
1:确认你test.htm存在
解决方案 »
- 订单表和订单号的问题
- 在一个页面下点击“添加”按钮 在该页面的下方出现输入框 填写相关信息 保存后在页面上方的数据同时更新
- 关于 setcookie()函数问题!
- php中& $var1中的&是什么意思?
- unix系统下架设的php服务器和windows下架设的php服务器,有什么不同?
- 问下SQL数据表查询的问题
- 如何判断文件内容是否包含,如何判断文件类型!
- 求助安装php5不成功
- 一个小问题。。
- 把调色板组件整合到针对PHP的Delphi编程环境中TeeChart for PHP
- 用top关键词搜索出前几条数据,怎么写啊?
- 要建一个社团(以后可能是公司)的论坛,是使用php技术的论坛社区,要求实用,不用太花哨,稳定,无版权问题,请推荐一个,谢谢
$tpl->template_dir=__TEMPLATES_PATH;,或确定你的TEST.HTM是否存在
<?php
//include "comm/smarty.class.php";
require ('./comm/Smarty.class.php');
define ('_SITE_ROOT','E:/smarty');
$tp1=new smarty();
$tp1->template_dir=_SITE_ROOT."./templates/";
$tp1->templates_c=_SITE_ROOT."./templates_c/";
$tp1->config_dir=_SITE_ROOT."./configs/";
$tp1->cache_dir=_SITE_ROOT."./cache/";
$tp1->left_delimiter="{/";
$tp1->right_delimiter="/}";
?>
test.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<{$title}>
<br>
<{$content}>;
</BODY>
</HTML>
test.php
<?php
include "main.php";
$tp1->assign("title","测试用的网页");
$tp1->assign("content","测试用的网页内容");
$tp1->display("test.htm");
?>
各位大哥看看呀!