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

WBOY
Release: 2016-06-02 11:28:46
Original
1061 people have browsed it

phphtmlapache

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

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

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!