Handling Errors in PHP

Are these settings enough to stop the headache from handling errors?

error_reporting (E_ALL);  
ini_set ('display_errors', 'off');    
ini_set ('error_log', 'log.txt');    
ini_set ('log_errors', 'on');

Answer 1, authority 100%

Not really. Do a better error handlerinside your code. And inside this handler, already write what kind of error and stack trace with arguments (it is advisable not to expand the classes, except perhaps small ones). This is at least.