摘要: PHP文件:1.php<?phpheader('Content-type: text/html; charset=utf8');$title = "这个是标题吗??变量名title";$file = "这是什么?这个变量名为file";$fp = fopen ("templets/temp.html","r");$content = fread ($fp,filesize ("templets/temp.html"));$content = str_replace (&qu 阅读全文
posted @ 2012-07-02 09:20 神马和浮云 阅读(302) 评论(0) 推荐(0) 编辑
摘要: PHP文件名:dome.php <?php $string = 1; ob_start(); @readfile("templets/list.html"); $text = ob_get_flush(); $myfile = fopen("list.html","w"); $text = str_replace ("{counent}",$string,$text); fwrite($myfile,$text); ob_clean(); ?>模板文件名:templets/list.html<!D 阅读全文
posted @ 2012-07-02 09:18 神马和浮云 阅读(550) 评论(0) 推荐(0) 编辑