在php文件中打开错误提示

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

原文地址:https://www.cnblogs.com/yubestman/p/4030939.html