Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的远程服务器上,我使用该行 AddType application/x-httpd-php .php .htm .html 来解析具有 htm/html 扩展名的文件中的 php 如何在运行 EasyPHP 的本地计算机上复制此行为。 我尝试将同一行添加到 Apache/conf/httpd.conf 并重新启动服务器,但文件显示为 html 文件,而没有运行 php 代码。
AddType application/x-httpd-php .php .htm .html
各种 googles/php docs/stack/easyphp 文档搜索未能提供帮助。
您需要在 conf_files/httpd.conf 中添加同一行, 因为每次启动服务器时都会重新生成 apache/conf/httpd.conf。