PHP page staticization—dynamic pages and static pages

WBOY
Release: 2016-08-08 09:22:03
Original
1169 people have browsed it

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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template