PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
open STDERR, "e;>>errors.txt"e; or die "e;Can't redirect STDERR: $!"e;;
Is there a way to do something similar in PHP? I've looked at writing a custom error handler with set_error_handler(), but I can't get it to work with anything other than simple warnings. I really need to capture *every* error to somewhere other than the usual log.
the error handler can only capture errors that is caused by at run-time. all others cannot be dealt with (as your error handler hasn't even started).
and generally, this is not something one should care about as these errors cannot appear without modification. meaning that if you don't see these errors... then they won't appear unless you modify something.