php网页报很多notice的错误

这是被人发给我的系统,但是打开报很多错,我想知道这些错误是什么原因造成的?除了修改php.ini和添加error_reporting(E_ALL&~E_NOTICE);外... 这是被人发给我的系统,但是打开报很多错,我想知道这些错误是什么原因造成的?
除了修改php.ini和添加error_reporting (E_ALL & ~E_NOTICE);外,有没有其他解决办法。
PHP Notice: A session had already been started - ignoring session_start() in E:\wwwroot\shang\top.php on line 2 PHP Notice: Use of undefined constant username - assumed 'username' in E:\wwwroot\shang\top.php on line 48 PHP Notice: Use of undefined constant username - assumed 'username' in E:\wwwroot\shang\top.php on line 55 PHP Notice: Use of undefined constant id - assumed 'id' in E:\wwwroot\shang\left.php on line 121 PHP Notice: Use of undefined constant title - assumed 'title' in E:\wwwroot\shang\left.php on line 123 PHP Notice: Use of undefined constant title - assumed 'title' in E:\wwwroot\shang\left.php on line 124 PHP Notice: Use of undefined constant id - assumed 'id' in E:\wwwroot\shang\left.php on line 121 PHP Notice: Use of undefined constant title - assumed 'title' in E:\wwwroot\shang\left.php on line 123 PHP Notice: Use of undefined constant title - assumed 'title' in E:\wwwroot\shang\left.php on line 124 PHP Notice: Use of undefined constant id - assumed 'id' in E:\wwwroot\shang\left.php on line 121 PHP Notice: Use of undefined constant title - assumed 'title' in E:\wwwroot\shang\left.php on line 123 PHP Notice: Use of undefined constant title - assumed 'title' in E:\wwwroot\shang\left.php on line 124 PHP Notice: Use of undefined constant id - assumed 'id' in E:\wwwroot\shang\left.php on line 121 PHP Notice: Use of undefined constant title - assumed 'title' in E:\wwwroot\shang\left.php on line 123 PHP Notice: Use of undefined constant title - assumed 'title' in E:\wwwroot\shang\left.php on line 124 PHP Notice: Use of undefined constant linkurl - assumed 'linkurl' in E:\wwwroot\shang\left.php on line 174 PHP Notice: Use of undefined constant linkname - assumed 'linkname' in E:\wwwroot\shang\left.php on line 176 PHP Notice: Use of undefined constant linkname - assumed 'linkname' in E:\wwwroot\shang\left.php on line 177 PHP Notice: Use of undefined constant linkurl - assumed 'linkurl' in E:\wwwroot\shang\left.php on line 174 PHP Notice: Use of undefined constant linkname - assumed 'linkname' in E:\wwwroot\shang\left.php on line 176 PHP Notice: Use of undefined constant linkname - assumed 'linkname' in E:\wwwroot\shang\left.php on line 177 PHP Notice: Use of undefined constant linkurl - assumed 'linkurl' in E:\wwwroot\shang\left.php on line 174 PHP Notice: Use of undefined constant linkname - assumed 'linkname' in E:\wwwroot\shang\left.php on line 176 PHP
展开
 我来答
hong_li_bin
2011-07-30
知道答主
回答量:7
采纳率:0%
帮助的人:11.3万
展开全部
这个是正常的,因为php是动态语言,所以可以在任何地方随便添加变量而不需要声明。这只是编译器提醒你有些页面中有某些未定义的变量而已,因为未声明而使用的变量是很容易出现错误的。如果你要真正消除这个问题,你就应该养成良好的变成习惯,在变量的使用前先声明变量!
lc214998686
2011-07-30 · TA获得超过337个赞
知道答主
回答量:30
采纳率:0%
帮助的人:18.5万
展开全部
根据log信息去查找啊,都说了line 176 ,就去看那行的代码啊,你这有好多未定义的错误啊,应该是定义变量时出的问题,输入错误什么的
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

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

类别

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

说明

0/200

提交
取消

辅 助

模 式