Home > Backend Development > PHP Tutorial > 文件名后缀是html格式的文件,如果有php代码,php代码会被忽略?解决方案

文件名后缀是html格式的文件,如果有php代码,php代码会被忽略?解决方案

PHP中文网
Release: 2016-06-13 11:38:14
Original
1418 people have browsed it

  文件名后缀是html格式的文件,如果有php代码,php代码会被忽略?



------解决方案--------------------
你要将.php改成.html,还要让PHP解析,那么只能在服务器里配置了。
------解决方案--------------------
addtype application/x-httpd-php .html

以上就是文件名后缀是html格式的文件,如果有php代码,php代码会被忽略?解决方案的内容,更多相关内容请关注PHP中文网(www.php.cn)!


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