Home > Article > Backend Development > PHP page staticization—dynamic pages and static pages
Dynamic page:
The data in the page needs to be obtained dynamically from a file or database;
For example, a page generated by requesting a php file; when requesting a php file, the php file will go through 3 Execution phase, syntax analysis, compilation, and execution.
So this type of page is also a dynamic page;
Static file:
Page generated by pure html file; When requesting an html file, the html file will not undergo syntax analysis , compile and it will run directly.
So this type of page is a static page;
As can be seen from the above description, loading a static file will definitely be faster than loading a dynamic file. That’s for sure;
The above has introduced the staticization of PHP pages - dynamic pages and static pages, including aspects of content. I hope it will be helpful to friends who are interested in PHP tutorials.