php转静态

<?php

ob_start();
include ("price.php");
$content = ob_get_contents();//取得php页面输出的全部内容
$fp = fopen("./price.htm", "w");
fwrite($fp, $content);
fclose($fp);

?>

posted @ 2009-07-19 02:07  小鸡炖蘑菇  阅读(280)  评论(1编辑  收藏  举报