複製程式碼 程式碼如下:
function CreateShtml()1com
");
}
function callback_CteateShtml($buffer)
{
$page = intval(@$_REQUEST["page"]);
DOCUMENT_ROOT'] . dirname($_SERVER['PHP_SELF']) . "/article/" . basename($_SERVER['PHP_SELF'],".php") ?$page==0 ? . strval($page)) . ".html";
$fileName = basename($_SERVER['PHP_SELF'],".php") . ($page==0 ? "" ($page)) . ".html";//可以在這裡修改你的靜態頁面路徑
$fp = fopen($fileName,"wb");
fwrite($fp,$buffer);
fclose($fp);
return $buffer;
}
?>
複製程式碼 程式碼如下:
inude(stat" .php");