Home > Backend Development > PHP Tutorial > require很多.html文件占用资源大吗,该怎么处理

require很多.html文件占用资源大吗,该怎么处理

WBOY
Release: 2016-06-13 10:03:45
Original
752 people have browsed it

require很多.html文件占用资源大吗
我一个文件里要require 10个左右 htm静态页面,
请问和直接嵌入相比,效率会差很多吗?

必须从外部载入,有什么高效的方法

------解决方案--------------------
效率其次,关键是有没有必要。即便只是为了直观且方便维护,也算是有必要的。
------解决方案--------------------
静态文件首选 readfile()

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template