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

This entry was posted in Program and tagged . Bookmark the permalink.

发表评论

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

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