ini_set("display_errors", "On");
error_reporting(E_ALL);

有了以上两句话,php就会强制显示错误!