10 Steps to properly do PHP Bug Tracking and Fixing as Fast as possible – Part 3
7. Send PHP Errors to an Error Log File 8. Add more Error Context Information to PHP Errors Logs 7. Send PHP Errors to an Error Log File If you should not display PHP errors on the Web pages, you should be able to see them somehow. A better alternative is to send the errors to a error log file. This way you can watch what is going on without disclosing sensitive information to your site users. You can enable PHP error logs adding a few configuration lines to your php.ini file. Additionally you also set other useful PHP options. error_reporting = E_ALL log_errors = On error_log = /path/to/php_error_log log_errors_max_len = 0 ignore_repeated_errors = On ignore_repeated_source = Off report_memleaks = On track_errors = On html_errors = Off 8. Add more…