当前位置: 首页 > 图文教程 > 网络编程 > PHP > smarty静态实验表明,网络上是错的~呵呵

PHP
PHP新手上路(九)
来自PHP.NET的入门教程
PHP新手上路(十)
Apache, PHP在Windows 9x/NT下的安装与配置 (二)
别人整理的服务器变量:$_SERVER
APMServ使用说明
《APMServ 5.1.2》使用图解
一个可以找出源代码中所有中文的工具
php.ini 中文版
MYSQL数据库初学者使用指南
第一节--面向对象编程
第二节--PHP5 的对象模型
第三节--定义一个类
第四节--构造函数和析构函数
第五节--克隆
第六节--访问属性和方法
第七节--类的静态成员
第八节--访问方式
第九节--绑定
第十节--抽象方法和抽象类

PHP 中的 smarty静态实验表明,网络上是错的~呵呵


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-13   浏览: 129 ::
收藏到网摘: n/a

复制代码 代码如下:
<?
require_once("Smarty/libs/Smarty.class.php");
$smarty = new smarty();
$smarty->templates_dir="templates";
$smarty->templates_c_dir="templates_c";
$smarty->left_delimiter="<{";
$smarty->right_delimiter="}>";
$smarty->assign("title","你成功了");
$smarty->display("test.html");
$content=$smarty->fetch("test.html");
$fp=fopen("ok.html","w");
fwrite($fp,$content);
fclose($fp);
?>