How to Enable Error Reporting in PHP
In this lesson, we will see how to enable error reporting in PHP, it's an important feature that tells the server to display errors when building your website.
Update the php.ini file
So to achieve that you need to update the php.ini file and add these two lines on the top.
error_reporting ( E_ALL ) ;
ini_set ( 'display_errors' , 1 ) ;