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

PHP
社区(php&&mysql)二
如何做到多筆資料的同步
利用php来自动调用不同服务器上的flash
社区(php&&mysql)三
社区(php&&mysql)四
社区(php&&mysql)五
判“新”函数:得到今天与明天的秒数
社区(php&&mysql)六
PHP脚本的10个技巧(3)
聊天室php&mysql(六)
PHP脚本的10个技巧(4)
打造计数器DIY三步曲(上)
打造计数器DIY三步曲(下)
打造计数器DIY三步曲(中)
PHP脚本的10个技巧(5)
复杂检索数据并分页显示的处理方法
PHP脚本的10个技巧(6)
PHP脚本的10个技巧(7)
一个域名查询的程序
用PHP实现小型站点广告管理

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


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-13   浏览: 164 ::
收藏到网摘: 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);
?>