摘要:
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 阅读全文
摘要:
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 阅读全文