单页的php错误报告? [英] php error reporting for single page?

查看:80
本文介绍了单页的php错误报告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可能(如果是,如何)如何打开php错误报告到屏幕只有一页?我目前在php ini中关闭屏幕的所有错误报告。

Is it possible (and if so, how) to turn on php error reporting to the screen for just one page? I currently have all error reporting to the screen switched off in php ini.

或者另一种询问方式 - 如果我在一个页面上使用error_reporting(E_ALL),将会还显示其他页面上的错误(我不想要的)?

Or another way of asking - if I use error_reporting(E_ALL) on a single page, will it also display errors on other pages (what I don't want)?

谢谢!

推荐答案

使用 error_reporting(E_ALL)将仅为该页面启用错误报告!

Using error_reporting(E_ALL) will enable error reporting for only that page!

显示错误使用, ini_set(display_errors,1)

这篇关于单页的php错误报告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆