如何显示PHP运行错误

在运行文件的最前面加两行代码:

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

这样调试起来就方便多了

猜你喜欢

转载自www.cnblogs.com/jerryqi/p/9558460.html