Include (".. /conn.php ");
$url =$_get[' url '];//url address
$uid =$_get[' uid '];//id value
function Get_center ($url _id, $uid) {
$c//Get content from the cache
$url = $url _id;
$id = $uid;
$c//bar The contents of the cache are assigned to a variable
Ob_end_clean ();//close Cache and empty
/*** Cache End ***/
File_put_contents (".. /". $id.". HTML ", $content);
}
$sql = "SELECT * from article where id=". $uid. "";
$query =mysql_query ($sql);
$rs =mysql_fetch_array ($query);
if ($rs ["url"]== ") {
Get_center ($url, $uid);
$sql = "UPDATE article SET url= ' localhost/weizhuan/". $uid. ". HTML ' WHERE id = '. $uid. ";
$sql = "UPDATE article SET FirstName = ' Fred ' WHERE LastName = ' Wilson '";
@mysql_query ($sql) or Die ("SQL has err");
echo "";
}else{
Get_center ($url, $uid);
$sql = "UPDATE article SET url= ' localhost/weizhuan/". $uid. ". HTML ' WHERE id = '. $uid. ";
$sql = "UPDATE article SET FirstName = ' Fred ' WHERE LastName = ' Wilson '";
@mysql_query ($sql) or Die ("SQL has err");
echo "";
}
?>
The above describes the PHP page static get page cache generated HTML page, including the contents of the content, I hope the PHP tutorial interested in a friend helpful.