PHP舉例:
代碼: 選擇全部
ob_start();
echo "Hello World!";
$content = ob_get_contents(); //取得php頁面輸出的全部內容
$fp = fopen("archives/2005/05/19/0001.html", "w");
fwrite($fp, $content);
fclose($fp);
代碼: 選擇全部
ob_start();
echo "Hello World!";
$content = ob_get_contents(); //取得php頁面輸出的全部內容
$fp = fopen("archives/2005/05/19/0001.html", "w");
fwrite($fp, $content);
fclose($fp);