php中模版生成html的原理
摘要://打开模版文件$file=fopen('temp.html','r');$html_content=fread($file,filesize('temp.html'));//替换模版标签$php_content=str_replace('{','<?php echo ',$html_content);$php_content=str_replace('}',';?>',$php_content);//新建php模版文件$php_temp=fopen('temp.
阅读全文
posted @ 2012-08-31 17:43
浙公网安备 33010602011771号