Add new comment

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

By admin

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.