How to show all errors in php?

Without editing php.ini it is possible to display almost all errors in php by adding following 3 lines of codes on the top of the php page:

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

Hope it helped you. If it helped please do not forget to comment below. Thanks.

You may also like...

Leave a Reply

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

ERROR: si-captcha.php plugin: GD image support not detected in PHP!

Contact your web host and ask them to enable GD image support for PHP.

ERROR: si-captcha.php plugin: imagepng function not detected in PHP!

Contact your web host and ask them to enable imagepng for PHP.