dsag14654 2013-10-09 10:14
浏览 72

用php显示错误

I've read lots of posts here about that but found nothing that worked for me! I need to have php errors displayed on browser for one site. All other site must not. In my php.ini I've

error_reporting = E_DEPRECATED & ~E_STRICT

and

display_errors = On

On My .htaccess I've

php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on

I've tried to put

error_reporting(E_ALL);

on the starting of my php script I need to debug, but always I've an error, there is a blank page, and not errors. Nothing more in the log file on the server... I don't understand how to have these errors displayed... Any idea please?

[edit] Starting of my php script:

ini_set('display_errors', 'On');
error_reporting(E_ALL);
include_once("config.php");
include_once("include/functions.php");

function main(){
global $link;
include("header.php");

echo '
<!-- Our Services -->
  • 写回答

2条回答 默认 最新

  • douzhang7184 2013-10-09 10:17
    关注

    You could try.

    error_reporting(E_ALL);
    ini_set("display_errors", 1);

    评论

报告相同问题?

悬赏问题

  • ¥15 win11家庭中文版安装docker遇到Hyper-V启用失败解决办法整理
  • ¥15 gradio的web端页面格式不对的问题
  • ¥15 求大家看看Nonce如何配置
  • ¥15 Matlab怎么求解含参的二重积分?
  • ¥15 苹果手机突然连不上wifi了?
  • ¥15 cgictest.cgi文件无法访问
  • ¥20 删除和修改功能无法调用
  • ¥15 kafka topic 所有分副本数修改
  • ¥15 小程序中fit格式等运动数据文件怎样实现可视化?(包含心率信息))
  • ¥15 如何利用mmdetection3d中的get_flops.py文件计算fcos3d方法的flops?