Home >Backend Development >PHP Tutorial >Problem with Undefined index in php

Problem with Undefined index in php

WBOY
WBOYOriginal
2016-07-25 09:03:531332browse
Usually when a local program is transferred to the server, various undefined NOTICE prompts will appear, which are not considered errors, but only warnings. You can add @ before the error statement or modify PHP.INI.

Usually when a local program is transferred to the server, various undefined NOTICE prompts will appear, which are not considered errors, but only warnings. You can add @ before the error statement or modify PHP.INI.

This is caused by error_reporting = E_ALL in PHP.INI. If you don’t want to see this prompt, you can do this: error_reporting = E_ALL &~E_NOTICE.

You can also add error_reporting(0) at the top of the page; This operation will prevent any errors from being displayed on this page.



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