Report AJAX error to php script

2013 年 3 月 2 日3830

This is great, however, if I set it to send the error, it's only reporting that an internal server error occurred. I still need to then check the log files for the actual PHP error. Is there anyway to get the PHP error upon the AJAX error? –George Ortiz 2 days ago

not if the server is returning a HTTP 500. You can change your php.ini file to displayErrors = On, and it will show you the actual error. Only do that in a dev environment though, not a good idea for production. Why not just use php's error log? –

Sorry jsut re-read your question. You could also try catching fatal errors in php with a try catch block, then sending yourself the notification in the catch. Updated my answer –

0 0