2019年9月29日 星期日

php輸出錯誤以供偵錯的語法

不方便修改主機php.ini時
在檔案前面加上下列語法,可在頁面上輸出錯誤的資訊以供偵錯
<?php
ini_set("display_errors","On");
error_reporting(E_ALL);
?>