- 1.在PHP代码中添加如下的代码
- ini_set('display_errors', true);
- error_reporting(E_ALL);
- 2.或者是在php.ini中打开
- error_reporting = E_ALL
- display_errors = On
- //该片段来自于http://www.codesnippet.cn/detail/1510201410648.html
来源: http://www.codesnippet.cn/detail/1510201410648.html