When you need to show all the PHP errors in the browsers just use this code
It should work with any version of PHP to report quite any kind of PHP error while you are debugging your code.
Remember to disable the error reporting when in production.
ini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(E_ALL);
It should work with any version of PHP to report quite any kind of PHP error while you are debugging your code.
Remember to disable the error reporting when in production.
Comments
Post a Comment