This question has been asked before in a more general way. I want to display error messages on a particular page on my production server, and I do not have access to the
A different method all together would be to register an error handler with: set_error_handler
This way, you can chose what to do with the errors: Mail them to admin, display friendly error message, log to file/db, ...