Php Show All Errors

We can show all errors and warning in php with ini_set.

Write this two lines

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

In index.php or php.ini or main file of your project. main entry point in project will be like index.php, config.php, wp-config.php, connection.php etc. depend on project structure.

Leave a Reply

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

Follow by Email
LinkedIn
Share
Instagram