php生成HTML静态页面如何实现

如题所述

php生成静态页面的技术很多,你看你需要那一种,像一楼二楼说得那样,是用得smarty技术,你也可以直接用代码实现,也可以用固有的CMS来实现或者用框架来实现。
温馨提示:答案为网友推荐,仅供参考
第1个回答  2013-08-06
用Smarty技术 <?php include("../libs/Config.inc.php"); $Smarty->assign('cust_ids',array(1000,1001,1002)); $Smarty->assign('cust_names',array('Majie','Jon','Maarty')); $Smarty->assign('cust_id',1000); $Smarty->display("../templates/htm.htm"); $output=$Smarty->fetch("../templates/htm.htm"); $optionspagename="../htmls/options.htm"; $fp=fopen($optionspagename,"w"); fwrite($fp,$output); fclose($fp); ?>

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网