Home  >  Article  >  Backend Development  >  如果小弟我把php服务器直接配置成html中运行php

如果小弟我把php服务器直接配置成html中运行php

WBOY
WBOYOriginal
2016-06-13 12:11:45898browse

如果我把php服务器直接配置成html中运行php
把apache修改成html就可以运行php
然后我页面直接使用aaa.html运行
这个会不会让服务器运行加重
------解决思路----------------------
正常来说,是会加重的。因为一般的html是不需要PHP解析的,这么改之后,相当于普通的静态HTML都需要先被PHP扫描、解析(虽然不一定有PHP代码)
------解决思路----------------------
如果设置apache .html文件都需要进行php解释。
而有部分其实不需要经过php处理的html都会被php解释。有点浪费资源,但影响很少。

Statement:
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