当前位置:Gxlcms > PHP教程 > PHPNotice:Undefinedindex错误提示的解决办法_PHP教程

PHPNotice:Undefinedindex错误提示的解决办法_PHP教程

时间:2021-07-01 10:21:17 帮助过:17人阅读

  这两天新装了服务器,改为Apache+PHP5.4.3,配置好后运行PHP网站,出现了一个错误提示:“PHP Notice: Undefined index ...”

  具体的信息为:

  PHP Notice: Undefined index: page in d:\myqy\andread.php on line 56

  出现此错误的信息个人认为可能是php.ini配置问题。

  解决办法:

  打开PHP的配置文件php.ini,搜索error_reporting,找到如下行:

  error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT

  修改成:

  error_reporting = E_ALL & ~E_NOTICE

  然后重启apache就可以了。

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/765436.htmlTechArticle这两天新装了服务器,改为Apache+PHP5.4.3,配置好后运行PHP网站,出现了一个错误提示:PHP Notice: Undefined index ... 具体的信息为: PHP Notice:...

人气教程排行