The ontent. php3 file is used to process dynamic pages. You can use content. php3? Page = ID to read a data file. I will not talk about the specific method, as long as you know that each data file has a different ID number, so content. php3? Page = ID indicates a data file.
Line 1-3 generates a temporary file name. Change '? Replace ',' & ''_'.
Row 3: determines whether the temporary file name exists. If yes, execute line 18-22 and end.
Line 6-13: Determine the file modification time related to the dynamic page generation and the temporary file update, and set the regenerate flag. Use filemtime () here to get the last modification time.
Line 24-41: use the template class to generate dynamic results and place them in variables. For more information about template processing, see template and PHPLIB processing method.
Line 43-50 generates temporary files. The file is locked to avoid write conflicts.
51st rows, output results.
This is my solution. You can modify it on your own.
Caching is a meaningful technology that increases access speeds and reduces system consumption. However, there may be a variety of methods that everyone can do.