Is it possible to make all PHP errors be written to MySQL instead of to the standard error_log file. I guess this would be possible if i wrote my own error handler from scratch but i have a lot of legacy code in place and ideally i would just make 1 global change and that would be it. Can this be done?
Share
I don’t think it can be done without building an own error handler, but technically, that is the one global change you’re looking for.
Modified example from the manual:
then