On my Classic ASP sites, I have a script that uses Server.GetLastError to output the file, line and error message when a 500 error is encountered. This is then emailed to me so I can then use it to debug & fix the code.
Edit: to be clear, the Classic ASP solution uses a custom 500 page to send the details...
Is there something similar in PHP I can use for the same function?
Thanks