PHP file name: dome.php
$string = 1; ob_start(); @readfile("templets/list.html"); $text = ob_get_flush(); $myfile = fopen("list.html","w"); $text = str_replace ("{counent}",$string,$text); fwrite($myfile,$text); ob_clean();?>
Template file name: templets/list.html
<html><head><metahttp-equiv="Content-type"Content="text/html; Charset=utf-8 "><title>Insert Title here
title
>
Head
><body>
Body
><tableWidth="border" = "0"cellpadding= "5" cellspacing="1"align= "Center"bgcolor="#add3ef" ><trbgcolor="#eff3ff"><TD>User: {Counent_user} title: {counent_title} release time: {counent_lastdate}
TD
>
TR
><trbgcolor="#fff"><TD>Content: {counent_content}
TD
>
TR
>
Table
>
Form
>
HTML
>
http://blog.csdn.net/leedaning/article/details/48088863
'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
'). Text (i)); }; $numbering. FadeIn (1700); }); });
The above describes the PHP generation of static HTML page simple method, including the content of HTML, I hope that the PHP tutorial interested in a friend helpful.