how to display php error

First you need to check PHP.INI file and set display error is set to on
(ex display_errors = On) and set error_reporting to e_all (error_reporting = E_ALL) and
restart the Apache server

if you do have access of PHP.INI file put following lines in PHP file


error_reporting = E_ALL & ~E_NOTICE

display_errors = On

and restart Apache server on linux

sudo /etc/init.d/apache2 restart

Leave a Reply

Your email address will not be published. Required fields are marked *