Posted by & filed under PHP, Programming.

I run into this from time to time, and there are a few options for getting errors to display in browser when the server configuration is preventing it. .htaccess and php.ini can both be modified to allow this to happen. I have found a simpler way is to enable them via PHP:

 

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

 

Leave a Reply

You must be logged in to post a comment.