PHP Notice: Undefined index错误提示的解决办法

简介:  配置好后运行PHP网站,出现了一个错误提示:“PHP Notice: Undefined index ...”

本文转自IT摆渡网欢迎转载,请标明出处
摆渡网

更多php文章请阅读

php问题解决

  配置好后运行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就可以了。

目录
相关文章
|
3月前
|
PHP
PHP遇见错误了看不懂?这些错误提示你必须搞懂
PHP遇见错误了看不懂?这些错误提示你必须搞懂
33 0
|
7月前
|
PHP
PHP 开启或关闭错误提示
PHP 开启或关闭错误提示
100 0
|
PHP Windows
windows下 Call to undefined function posix_getpid() in ……\Workerman\Worker.php 的解决方法
windows下 Call to undefined function posix_getpid() in ……\Workerman\Worker.php 的解决方法
125 0
windows下 Call to undefined function posix_getpid() in ……\Workerman\Worker.php 的解决方法
|
9月前
|
PHP
php模版引擎smarty出现Undefined index的解决方案
php模版引擎smarty出现Undefined index的解决方案
65 0
|
PHP
PHP使用explode报错:Undefined offset: 1
PHP使用explode报错:Undefined offset: 1
100 0
|
安全 PHP Windows
Atom 编辑器 atom-beautify 美化 php 遇到的问题及解决办法
Atom 编辑器 atom-beautify 美化 php 遇到的问题及解决办法
|
前端开发 应用服务中间件 PHP
PHP path_info,Thinkphp controller not exists index\php
研究过thinkphp框架源码的,或者深入了解过mvc的,都应该知道thinkphp框架的路由,是根据path_info值来解析的,甚至传参也可以带在path_info中
343 1
|
PHP
为php定制漂亮的错误提示
为php定制漂亮的错误提示
39 0
|
关系型数据库 MySQL PHP
PHP连接MySQL 8.0报错的解决办法
PHP连接MySQL 8.0报错的解决办法
339 0
|
PHP
TP5.1自定义创建命令(php think make:controller app\index\User)
TP5.1自定义创建命令(php think make:controller app\index\User)
98 0
TP5.1自定义创建命令(php think make:controller app\index\User)