Two methods for generating static pages in PHP

Source: Internet
Author: User
1. when a record is added to the background, the target html page is directly generated, and the frontend calls the connection to directly point to the generated html page. this method has the highest program efficiency. Server load is light,

1. when a record is added to the background, the target html page is directly generated, and the frontend calls the connection to directly point to the generated html page. this method has the highest program efficiency.

Server load is light, but because the generated page is a pure static page, once the page style (Template and css = theme) is changed, all content pages must be regenerated.

In actual use, there are not many applications. Most of them are using js, ssi, xml/xsl and other client methods. the generated static files only store data and do not involve styles. This balances the speed and maintainability, however, it is more complex than the front-and back-end programs. because the content of this method is purely static, it can be used together with a separately compiled pure static apache .. Higher efficiency and resource usage than dynamic content support)

Supplement:

A. to regenerate all the content pages of the modified style mentioned above, you can embed

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.