Error Handling5:11 with Alena Holligan
Handling fatal errors in the past has been next to impossible in PHP. A fatal error would not invoke the error handler and would simply stop your script. On a production server, this usually means showing a blank white screen, which confuses the user and causes your credibility to drop. It can also cause issues with resources that were never closed properly and are still in use or even locked. In PHP 7, an exception will be thrown when a fatal and recoverable error occurs, rather than just stopping the script.
You need to sign up for Treehouse in order to download course files.Sign up