PHP不显示任何样的错误 [英] PHP doesn't show any kind of errors
问题描述
我在家里发展的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为displayiong错误的设置是:
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?
编辑:
当我localY坐标设置这样的:
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不显示任何样的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!