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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -