PHP ini_set override php.ini -


this question has answer here:

in php.ini, have display_errors set off, on of pages on site don't want errors show up.

however, i'm writing new thing, , want errors on. @ top of script, put

        error_reporting(e_all);         ini_set('display_errors', 'on'); 

but errors didn't display, got http error 500.

so turned on in php.ini, , did display.

so there way can make errors display in places want to, in general, don't display?

many help

the way turning on display_errors in php.ini , using error_reporting(0); in place turn off error reporting , error_reporting(e_all); turn on them


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -