Home > php教程 > php手册 > 页面出现 Notice: Undefined variable 的解决方法

页面出现 Notice: Undefined variable 的解决方法

WBOY
Release: 2016-06-13 10:30:02
Original
1733 people have browsed it

这是php(做为现在的主流开发语言)警告信息,是由于未定义变量引起的。

解决方法:

修改php(做为现在的主流开发语言).ini

将: error_reporting = E_ALL

修改为:error_reporting = E_ALL & ~E_NOTICE

如果什么错误都不想让显示,直接修改:

display_errors = Off

一切OK,现在什么错误都不会显示了。

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template