PHP 不显示任何类型的错误

编程入门 行业动态 更新时间:2024-10-19 20:33:00
本文介绍了PHP 不显示任何类型的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在家里有一个 PHP 服务器用于开发.它正在运行:

I have a PHP server at home for development. It is running:

Ubuntu 9.10 Apache 2.2.12 PHP 5.3.2-0.dotdeb.1 MySql 5.0.7-dev

目前php.ini中显示错误的设置是:

Currently the settings in the php.ini for displayiong errors are:

display_errors = on error_reporting = E_ALL

但是我在我的 php 脚本中没有看到任何错误.同样很奇怪的是 phpinfo() 向我展示了这个:

But I do not see any errors in my php script. Also very strange is that phpinfo() shows me this:

display_errors Off

我检查了 php.ini 文件,并多次重启 apache 服务器,但都没有成功.有人知道这怎么可能吗?

I checked the php.ini file, and restarted the apache server many times, but with no luck. Does anybody knows how this is possible?

当我本地设置时:

edit: When I localy set this:

ini_set('display_errors', 'on');

我确实收到了错误.

推荐答案

display_errors 参数是否在 php.ini 文件中多次列出?如果它定义了多次,它的第二个实例将覆盖第一个.

Is the display_errors parameter listed more than once in your php.ini file? If its defined more than once, the second instance of it will override the first.

更多推荐

PHP 不显示任何类型的错误

本文发布于:2023-05-29 23:09:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/355086.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   类型   PHP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!