Display PHP Errors



Many times I had to remember how to display PHP errors when it's disabled on the web server. So I wrote a reminder.

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



Any thoughts?

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Loading more content...