另一个“错误报告在 PHP 中不起作用”邮政
我得到的只是一张空白页。是的,我确实阅读了许多类似的问题。
我希望此更改适用于我的所有脚本,因此我进入了 php.ini。根据phpinfo()
,它位于/etc
中。因此,我去了那里,并打开了 error_reporting = E_ALL
和 error_display = On
。还是空白。
非常令人沮丧,所以我来到这里。我做错了什么?它是 PHP5、Apache 2.2.17。
All I get is a blank page. And, yes, I did read the dozens of similar questions asked.
I want this change to apply to all my scripts, so I went into php.ini
. According to phpinfo()
, it is located in /etc
. So, I went there, and turned error_reporting = E_ALL
and error_display = On
. Still blank.
Its very frustrating, so I came here. What am I doing wrong? It is PHP5, Apache 2.2.17.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
ini 设置称为 display_errors 而不是 error_display
The ini-setting is called display_errors not error_display
成功了!谢谢!
That worked! Thanks!
此外,当使用 php 并在同一主机上拥有多个站点时,您可以将 php.ini 文件复制到子站点中,并专门针对这些站点进行修改。
很多时候它不会默认为根“public_html”php.ini 文件,您需要复制此文件。
Additionally when using php and having multiple sites on the same host, you can copy the php.ini file into your sub sites and modify it specifically for those sites.
Many times it will not default to the root "public_html" php.ini file and you will need to copy this file in.