Change error reporting in a PHP script to display all errors
October 30, 2009
No comments
If a PHP script has an error but the displayed page stays blank and does not show anything,
add these two lines to the top of your script to display all PHP errors for the current script.
error_reporting(E_ALL);
ini_set("display_errors", 1);
Comments
Leave a comment Trackback