在我的远程服务器上,我正在使用线路
AddType application/x-httpd-php .php .htm .html
解析带有 htm/html 扩展名的文件中的 php
如何在运行 EasyPHP 的本地计算机上复制此行为。
我尝试将同一行添加到 Apache/conf/httpd.conf 并重新启动服务器,但文件显示为 html 文件,没有运行 php 代码。
各种 googles/php docs/stack/easyphp doc 搜索都没有帮助。
最佳答案
您需要在 conf_files/httpd.conf 中添加相同的行
因为每次启动服务器时都会重新生成 apache/conf/httpd.conf。
关于php - 配置 Easyphp 将 htm 文件作为 php 处理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/943990/