Php error message for single page?

Is it possible (and if so, how) to include a php error message on the screen for only one page? Currently, all error messages are displayed on the screen turned off in php ini.

Or another way: if I use error_reporting (E_ALL) on one page, will errors appear on other pages (which I don’t want)?

Thanks!

+4
source share
3 answers

Use error_reporting(E_ALL)will only report errors for this page!

To display errors use ini_set("display_errors", 1)

+8
source

error_reporting() PHP , script ( , , , ). ..

, script , , ( ). , - .

EDIT: , , display_errors . , , , , .

+4

error_reporting(0) script . . , , , .

Read more about error_reporting () here

+2
source

All Articles