error handling - PHP's white screen of death -
now i'm starting php, i'm starting remember why gave in first place. annoying thing on plate @ moment i've come term "php's white screen of death". when php gets fatal error due syntax or whatever, seems die without sending browser. i've added following .htaccess
, , seems work of time, doesn't work in these cases.
php_value display_errors 1 php_value display_startup_errors 1 php_value error_reporting 2147483647 # e_all
am missing something? @ moment feel need hit refresh every few lines of code write, lest make mistake , have search through many pages trying track down 1 little mistake made...
edit: example, given 2 lines of code below:
$foo = array(':language' => $languageid; $foo = array(':language' => $languageid);
the first exhibit white screen of death (ie, nothing @ printed browser), while second execute happily.
errors , warnings appear in ....\logs\php_error.log
or ....\logs\apache_error.log
depending on php.ini settings.
also useful errors directed browser, not valid html not displayed.
so "tail -f
" log files , when blank screen use ies "view" -> "source" menu options view raw output.
Comments
Post a Comment