Create a field in the database, record the file name, each generation of a file, the automatically generated file name is stored in the database, for the recommended article, just point to the folder that holds the static file in the designated folders that page. Use PHP to manipulate the list of articles, save as a string, and replace this string when generating a page. For example, a table that places a list of articles in a page adds tag {articletable} and in a PHP processing file:
Code: $title = "Tuo mai international test Template"; $file = "Twomax Inter test Templet, Author:_max ">matrix@two_max";
$filename = "test/test.html"; $handle = fopen ($filename, "w"); Open the file pointer, create the file /* to check whether the file was created and writable */ if (!is_writable ($filename)) { die ("File:". $filename. " Not writable, please check itsProperty and try again! "); } if (!fwrite ($handle, $content)) { //write information to file die (build file. $filename. " Failed! "); } fclose ($handle);//close pointer
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.