我看过这样的约10个问题,但似乎没有回答这个简单的问题。
I have read about 10 questions like this, but there seems to be no answer to this simple question.
什么会导致.htm文件被下载,而不是作为PHP执行?
What could cause .htm files to be downloading instead of executed as php?
我使用下面的code:
I am using the following code:
AddType application/x-httpd-php htm
我已经尝试了多种组合,但没有成功。
I have tried many combinations but no success.
我还可以尝试一下呢?
我需要的是名为.htm和.html文件执行PHP。
All I need is .htm and .html files to execute php.
使用的AddHandler
另外,更改 HTM
来热媒
并添加的.html
Use AddHandler
also, change htm
to .htm
and add .html
AddHandler application/x-httpd-php .htm .html
AddType application/x-httpd-php .htm .html
http://www.suffix.be/blog/addhandler-addtype-directives