Static page html must be faster than dynamic page php? Solution

Source: Internet
Author: User
Static page html must be faster than dynamic page php. In the same environment, which is faster when the data is the same? Static page html must be faster than dynamic page php?
As the question.

In the same environment, which is faster when the data is the same? Share:
------ Solution --------------------
Pure static html must be faster.
------ Solution --------------------
Of course it is an html file, because it does not need to be processed by php.
------ Solution --------------------
Decisive html, php also needs to read the database, the processing program that
------ Solution --------------------
Php is also a read hard disk, and cache is implemented by apache or other services.
------ Solution --------------------
Of course, there is no static link, and the static load is very low.
------ Solution --------------------
You all say that the same conditions are met. html can also be cached. php Cache should be compared with html cache.
------ Solution --------------------
Reference:
But does html not need to read the hard disk? isn't PHP able to read data from the memory?
Yes. html needs to read the hard disk. isn't the php program not read from the hard disk?


Reference:
Will cache memcache and eAccelerator be faster than html?

Access html files: web servers --> html files
Access the php file: the web server --> load the php interpretation system --> execute the 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.