Debugging PHP Programmers
Error message
?
Turn on error reporting and set the level of error reporting in the php.ini file:
?
The purpose of the display_errors variable is obvious-it tells PHP if it shows an error. The default value is Off . However, to make the development process easier, please set this value to On :
error_reportingThe default value of the variable is E_ALL . This setting shows all the information from bad coding practices to harmless prompts to errors. E_ALLIt's a bit too thin for the development process, because it shows hints on the screen for small things (such as uninitialized variables), which can mess up the browser's output. I just want to see errors and bad coding practices, but don't want to see harmless hints. Therefore, use the following values instead error_reporting of the default values:
?
error_reporting = E_all & ~e_notice |
Restart Apache and it's all set up.
1/F mybeautiful 2012-05-30
Programmers are not able to debug.