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

Problem with Undefined index in php

WBOY
Release: 2016-07-25 09:03:53
Original
1335 people have browsed it
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.



Related labels:
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