If you have display_errors turned on in your script but seeing a blank page ("White Screen of Death") instead of the PHP errors; you may have PHP parsing error(s). PHP errors are reported at run-time, but the syntax errors are caught before script execution causing blank screen. You may have left out single quote ', curly brace }, or semicolon ; somewhere in your script.
To catch those parsing errors, you'll have to use server level or folder level error reporting. To setup server level error reporting, you'll have to edit php.ini file; and to configure folder level error reporting, you'll edit .htaccess file.
Edit php.ini
display_errors = On
error_reporting = E_ALL & ~E_NOTICE
Edit .htaccess:
php_value display_errors 1
To easily detect syntax errors during development, color coded editors will help you catch syntax errors before even running it. My personal preference is Eclipse-PHP (or eclipse with php plug-in).
If you have display_errors
If you have display_errors turned on in your script but seeing a blank page ("White Screen of Death") instead of the PHP errors; you may have PHP parsing error(s). PHP errors are reported at run-time, but the syntax errors are caught before script execution causing blank screen. You may have left out single quote ', curly brace }, or semicolon ; somewhere in your script.
To catch those parsing errors, you'll have to use server level or folder level error reporting. To setup server level error reporting, you'll have to edit php.ini file; and to configure folder level error reporting, you'll edit .htaccess file.
Edit php.ini
Edit .htaccess:
To easily detect syntax errors during development, color coded editors will help you catch syntax errors before even running it. My personal preference is Eclipse-PHP (or eclipse with php plug-in).