This is a discussion on htaccess php error within the PHP General forums, part of the PHP Programming Forums category; Hi, What is the configuration so php errors get displayed but NOT general php notices? This is what I currently ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
What is the configuration so php errors get displayed but NOT general php notices? This is what I currently have in my .htaccess ... it's displaying both (errors and notices). php_flag display_errors On php_value error_reporting 2047 If I add this instead this it displays nothing when it errors: php_flag display_errors On php_value error_reporting "E_ALL & ~E_NOTICE" |
|
|||
|
2039 is the integer value and is also the default error level for PHP.
Necessary to use numerical value instead of constants outside of PHP. On Jun 16, 2:33 pm, JonnyAJAX <jon.cianciu...@gmail.com> wrote: > Hi, > What is the configuration so php errors get displayed but NOT general > php notices? > > This is what I currently have in my .htaccess ... it's displaying both > (errors and notices). > > php_flag display_errors On > php_value error_reporting 2047 > > If I add this instead this it displays nothing when it errors: > php_flag display_errors On > php_value error_reporting "E_ALL & ~E_NOTICE" |
![]() |
| Thread Tools | |
| Display Modes | |
|
|