The ontent.php3 file is used to process dynamic pages. The user can read a data file via the Content.php3?page=id number. I'm not going to tell you the exact way, everybody just know that each data file has a different ID number so that the content.php3?page=id can uniquely identify a data file.
第1-3 a row to generate a temporary file name. Replace '? ', ' & ' with characters like ' _ '.
Line 4th, determine if the temporary file name exists, if any, execute the 第18-22 line, and end.
第6-13 line, determine the file modification time associated with generating a dynamic page with the temporary file which update, set the regenerate flag. Use Filemtime () here to get the last modification time.
第24-41, use the template class to generate dynamic results, placed in variables. About the template processing can refer to the "template, Phplib processing method" article.
第43-50 the line, generate a temporary file. The file is locking processed to resemble a write conflict.
Line 51st, output results.
This is my deal, you can modify it by yourself.
Buffering is a meaningful technique that can improve access speed and reduce system consumption. However, there may be a variety of methods, and we can play them freely.
http://www.bkjia.com/PHPjc/445595.html www.bkjia.com true http://www.bkjia.com/PHPjc/445595.html techarticle The ontent.php3 file is used to process dynamic pages. The user can read a data file via the Content.php3?page=id number. The concrete method I will not say, everybody just know each data file is ...