Home >Backend Development >PHP Tutorial >PHP怎么可以提示错误信息?

PHP怎么可以提示错误信息?

WBOY
WBOYOriginal
2016-06-06 20:19:521038browse

php代码运行有错误,但是没有提示错误信息,不知道怎么去定位解决?

回复内容:

php代码运行有错误,但是没有提示错误信息,不知道怎么去定位解决?

如果不具备修改php.ini的权限,可以将如下代码加入php文件中:
代码如下 复制代码
ini_set("display_errors", "On");
error_reporting(E_ALL | E_STRICT);

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn