Error Reporting Directives in php.ini
Error Reporting Directives in php.ini
To diagnose bugs in your code, you should enable the directive that allows error messages to be written to the browser.
This is on by default.
display_errors = On
You can also set the level of error reporting. For working through this book, you should set this to the following:
error_reporting = E_ALL & ~ E_NOTICE
This will report all errors but not notices that warn about potential problems with your code. Notices can interfere with some PHP techniques. This setting is the default.