Showing PHP errors

On production environment, you sometimes need to display errors temporarily to see what’s going wrong.  Without the need to modify php.ini, you can add this to .htaccess file on the particular web folder you are working on.

php_flag display_errors On

Then you can remove the line afterwards.

Leave a comment