关于PHP的问题

最近在学PHP可是页面经常出现以下的字Notice:Useofundefinedconstantid-assumed'id'inC:\wamp\www\index.php... 最近在学PHP
可是页面经常出现以下的字
Notice: Use of undefined constant id - assumed 'id' in C:\wamp\www\index.php on line 23
1
Notice: Use of undefined constant name - assumed 'name' in C:\wamp\www\index.php on line 25
guestbook
Notice: Use of undefined constant mail - assumed 'mail' in C:\wamp\www\index.php on line 27
1
Notice: Use of undefined constant phone - assumed 'phone' in C:\wamp\www\index.php on line 29
1
Notice: Use of undefined constant address - assumed 'address' in C:\wamp\www\index.php on line 31
1

1 1 1 都是从数据库输出的类容

我以为是自己写的问题 ,然后我安装了wordpress 也出现这样的东西

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\wp-settings.php on line 520

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\wp-settings.php on line 535

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\wp-settings.php on line 542

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\wp-settings.php on line 578

Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\wamp\www\wp-settings.php on line 18

这是怎么回事呢??我是在本地wamp集成环境运行的
展开
 我来答
百度网友8c7585c1d
2009-09-09 · TA获得超过119个赞
知道小有建树答主
回答量:150
采纳率:0%
帮助的人:110万
展开全部
在php.ini 里把错误级别改成 all_error^notice
大概就是这样的
意思为输出所有错误,但不显示通知级别的。

Notice代表通知级别的问题 但是不是错误程序,屏蔽notice通知程序可以正常运行。
我一般写的时候都会这样
alei817927
2009-09-15 · TA获得超过125个赞
知道小有建树答主
回答量:155
采纳率:0%
帮助的人:101万
展开全部
这是警告,一般没事,你可以在程序的最上面添加error_reporting(0)
这样就不会出现警告了
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式