Two methods for PHP static pages

Source: Internet
Author: User
1. when adding records in the governance background, the website directly targets the html page, and the frontend calls the connection to directly point to the natural html page. This method has the highest program efficiency. Server load is light, but because it is inherently pure static page, once the page

1. when adding records in the governance background, the website directly targets the html page, and the frontend calls the connection to directly point to the natural html page. This method has the highest program efficiency.

Server load is light, but because it is born with pure static pages, once the page style (Template and css = theme) is corrected, it is necessary to re-create all the content pages.

Therefore, it is generally not used in many practical applications. More is the application of js, ssi, xml/xsl and other client means, natural static files only retain data, does not involve style,

In this way, the balance between speed and protection can be achieved, but it is more complicated than the front-end programs. (in this method, the content is purely static, and can be combined with a separately compiled pure static apache application .. Higher efficiency and resource usage than dynamic content support)

====
Supplement:

A. The correction style mentioned above should be replaced with all the content pages. you can use:
>>>> You can embed

Related Article

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.