教程集 www.jiaochengji.com
教程集 >  脚本编程  >  php  >  正文 php中Undefined index的问题

php中Undefined index的问题

发布时间:2015-02-02   编辑:jiaochengji.com
通常本地程序传送到服务器上,会出现各种未定义的NOTICE提示,并不算是错误,只是警告。可以在错误语句前加上@,也可以修改PHP.INI。

通常本地程序传送到服务器上,会出现各种未定义的NOTICE提示,并不算是错误,只是警告。
可以在错误语句前加上@,也可以修改PHP.INI。

这是由于PHP.INI里的 error_reporting = E_ALL 造成的,如果不希望看到这个提示,可以这样:
error_reporting = E_ALL &~E_NOTICE

也可在页面顶部加上 error_reporting(0);  此操作将禁止本页内任何错误显示。

您可能感兴趣的文章:
php Undefined variable和 Undefined index
PHP运行出现Notice : Use of undefined constant 的解决方法
php中Undefined index的问题
PHP “Notice: Undefined variable” 和 “Notice: Undefined index”报错
php Undefined index和Undefined variable的解决方法
php提示Undefined variable: 引发的几个操作php-fpm等
php错误Undefined variable: 如何解决
php-fpm出现Undefined variable几个解决办法
理解js中undefined与null的区别
php提示Notice: Undefined index 错误解决办法

关键词: php错误  Undefined index   
[关闭]
~ ~