PHP error “Notice:

PHP error “Notice: Undefined variable”
Problem

After installing FC3 php gives error messages like “Notice: Undefined variable: Bla bla”.
Reason

The default error setting in php.ini is set to E_ALL.
Solution
Edit /etc/php.ini with your favorite text editor. Replace the line
error_reporting = E_ALL
with
error_reporting = E_ALL & ~E_NOTICE
or
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT

此条目发表在Program分类目录,贴了标签。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已用*标注

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>