PHP 如何打开浏览器错误日志记录
例如,如果我的 PHP 脚本抛出错误,我希望它打印到浏览器。我使用的是 Debian 5.0 的 linux 盒子
For example if my PHP script throws an error I want it to print to the browser. I am on a linux box Debian 5.0
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将其放在 php 文件的顶部:
Put this that the top of your php file:
将 ini 变量
display_error
设置为 1,以向浏览器显示错误。Set the ini variable
display_error
to 1, to display errors to the browsers.