Is it possible to capture all of the PHP errors that occur during a site execution, save them to a variable and print them out into a javascript section to print?
i.e.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That is what
set_error_handleris for .. see for a working example and full documentationhttp://php.net/manual/en/function.set-error-handler.php
You should also look at
set_exception_handlerhttp://php.net/manual/en/function.set-exception-handler.php
Example