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

PHP
WHOIS类的修改版
用php和MySql来与ODBC数据连接
用PHP和ACCESS写聊天室(四)
用PHP和ACCESS写聊天室(五)
PHP+javascript模拟Matrix画面
用PHP和ACCESS写聊天室(六)
PHP与javascript的两种交互方式
用php+mysql一个名片库程序
用session做客户验证时的注意事项
模仿OSO的论坛(一)
我的群发邮件程序
php上传、管理照片示例
PHP实现网上点歌(二)
在PHP3中实现SESSION的功能(二)
在PHP3中实现SESSION的功能(三)
我用php+mysql写的留言本
在PHP3中实现SESSION的功能(一)
模仿OSO的论坛(三)
针对初学PHP者的疑难问答(2)
oracle资料库函式库

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


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