Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14611 reviews 1734 hosting providers

Questions & Answers

PHP Notice-undefined variable

Jan 18, 2013 by Nadia32
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?

1 Answer

0 votes
Jan 18, 2013 by dona
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