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

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

WBOY
Release: 2016-06-06 20:19:52
Original
1018 people have browsed it

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

回复内容:

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

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

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template