ini_set("display_errors", "On");//若頁面不報錯的話,請設置php.ini 的display_errors 爲 On error_reporting(E_ALL);//報全部的錯誤