Home  >  Article  >  Backend Development  >  php-怎么让Apche解析HTML文件中的PHP语句?

php-怎么让Apche解析HTML文件中的PHP语句?

WBOY
WBOYOriginal
2016-06-02 11:28:461062browse

phphtmlapache

如题,在网上搜了很多解决方法,如在 httpd.conf中加入以下两行代码:
AddType application/x-httpd-php .html .htm .php .phtml

AddType application/x-httpd-php-source .html .htm .phps
然后重启,访问html文件,直接出现的是下载提示框?求解答!不甚感激!

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