dotku
7/27/2016 - 6:16 PM

php 开发笔记.md

错误全开

This always works for me:

   ini_set('display_errors', 1);
   ini_set('display_startup_errors', 1);
   error_reporting(E_ALL);

However, this doesn't make PHP to show parse errors - the only way to show those errors is to modify your php.ini with this line:

display_errors = on

via http://stackoverflow.com/questions/1053424/how-do-i-get-php-errors-to-display