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.
我已经下载了一个免费的 HTML 模板,我愿意在它的文件中添加一些 php 脚本。apache2 服务器不运行 HTML 文件中的 php 代码
使用 .htaccess 文件没有运气 这里是 .htaccess 文件的外观:
AddType application/x-httpd-php5 .php AddHandler application/x-httpd-php5 .html .htm .shtml
我应该怎么办?
这对我有用..
AddHandler application/x-httpd-php .php .html .htm
干杯