Displaying an Error Page
Learn how to display an error page to the users when something goes wrong.
Creating an error script
Let’s improve the exception handler by showing the error page.
First, create a new page script, pages/error.php
.
Paste the following code in it:
Get hands-on with 1400+ tech skills courses.