我在 <ifModule mine_module>里 改成 
AddType application/x-httpd-php .php .html .htm 在我本地可以生效,但在服务器上无法生效,本地 linux和windows 都试过,服务器是 linux 请问高手原因出在了哪里?谢谢!急!另,设成: 
AddType application/x-httpd-htm .htm
Action application/x-httpd-htm "/usr/bin/php"也不行。哪位知道告诉一下! 谢谢!

解决方案 »

  1.   

    AddType application/x-httpd-php .php 不要后面的.html .htm试试
      

  2.   


    不要后面的 .html 和 .htm 当然是可以的,现在的要求是 能让 html页面执行 php的代码,必须加那两个,而且同样的情形,我在本地也调试成功了,但在服务器上不行,不知是哪里的原因。
      

  3.   

    为什么有这句:<ifModule mine_module>我的好像没有。你试一下在别处添加AddType application/x-httpd-php .htm .html .php
      

  4.   

    把其他有定义.htm .html的地方删除,重复定义了。
      

  5.   

    不要 <ifModule mine_module>  也不行。.htm .html 在其它地方也没有重复定义。我检查过了,问题在哪里呢?