我在家里有一个 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 不显示任何类型的错误
发布评论