|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
error reporting
Our technician recently changed webserver meaning that all previous settings for the PHP error reporting was reset. Earlier I got parse errors for example when forgetting a semicolon or a closing curly brace. Now I don't.
I also know that it's not good (for security reasons) to have these reports shown so I'm asking you to let me know what the best settings in the php.ini file is. I want to... * have all error reporting disabled by default, when the script runs for the public, including mysql errors. * enable all types of errors (mysql errors and parse errors inluded) except some notices at runtime, while I'm developing the scripts. Yes, I know the different values that can be used with display_errors (2047, 4096 etc) but what should I tell the php.ini ? So... Some settings go to the php.ini. Which? Some settings go into the ini_set at runtime while I'm developing, temporarily overriding the php.ini |
|
#2
|
|||
|
|||
|
RE: error reporting
if you access to php.ini i think error_reporting is off in there.
you can also set this in .htaccess of the relevant site to override the php.ini settings php_flag display_errors on php_value error_reporting 7 |
|
#3
|
|||
|
|||
|
RE: error reporting
btw if you access to php.ini make sure this is on
display_errors = On |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > error reporting |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|