我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

不能在html文件中使用PHP代码

After i updated from PHP 5x to PHP 7, i have some issues, I have used all way below in my .htaccess

1/AddHandler application/x-httpd-php .htm .html
2/AddType application/x-httpd-php .php .html

And many different ways i've done in my .htaccess file but it still not working, i also tried to show PHP error, but it not show anything.

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

All the html tag display as well, but it cannot read PHP code

近期文章

  • Symfony - 获取targetPath信息
  • 转换前ImageMagick重绘svg图像
  • 如何解决AdonisJs,XAMPP MySQL错误
  • 图像未上传或显示在旅行者的富文本框中
  • 如何在while循环中调用函数
  • 如何使用php邮件在邮件正文中发送超链接?
  • 如何在DB插入时将布尔值“false”插入为0?
  • 使用phpmyadmin mysql触发语法错误
  • strtotime(+1月)和12月/明年的行为
  • 在输入类型日期显示日期从PHP中的数据库
  • 针对特定案例停止Google日历事件通知
  • WAMP只会在使用会话时加载到localhost
  • 生成单元php测试 - > codecept.phar权限被拒绝
  • 如何通过电子邮件发送到mySQL表
  • pdo:从数据库收集数据[重复]
  • 分类学的Woocommerce相关产品
  • 发布操作后的浏览器后退按钮行为
  • 使用JSON将数组数据传递给Morris Chart
  • 在父类别页面上显示woocommerce子类别
  • 插入mysql数据库准备语句

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华