Static page HTML must be faster than dynamic page PHP

Source: Internet
Author: User
Title.

In the same environment configuration, data in the same situation, which fast?


Reply to discussion (solution)

The pure static HTML must be fast.

HTML file, of course, because he doesn't need to be processed by PHP.

HTML file, of course, because he doesn't need to be processed by PHP.

Decisive html,php also to read the database, the handler for those

But HTML is not to read the hard disk, PHP is not able to read data from memory

PHP is also read hard, the cache is Apache or other services engaged in

Is it faster to use cache memcache, Eaccelerator, and so on than HTML?

This is of course static less a link, static load is very low

You said the same condition, HTML can also be cached, the PHP cache should be compared with the HTML cache.

But the HTML is not to read the hard disk, PHP is not able to read data from memory is the HTML to read the hard disk, is not the PHP program from the hard disk read it?


Is it faster to use cache memcache, Eaccelerator, and so on than HTML?
Access HTML file: Web server--HTML file
Access PHP Files: Web server--load PHP Interpreter system--Execute PHP file

  • 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.