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);