PHP Notice-undefined variable

79 views
asked Jan 18, 2013 in General by Nadia32 (540 points)
PHP Notice
Hi all..
I was checking my Apache error log and I found the below PHP error message

PHP Notice: Undefined variable:
I am not seeing the cause of this error, and it’s clearly not affecting my project. Why am I getting it? Does anyone know?
Thanks..

1 Answer

0 like 0 dislike
answered Jan 18, 2013 by dona (4,540 points)
PHP is configured to display errors, notices and warnings. If you want to avoid  these messages do the following:
Find your  "php.ini" file  open it and find the "error_reporting" setting , and edit this particular line to:
error_reporting = E_ALL & ~E_NOTICE
...