Static page html must be faster than dynamic page php. In the same environment, which is faster when the data is the same? Share: 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