Re: Friday morning brain farts....

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, August 10, 2007 10:00 am, Daniel Brown wrote:
>     It's safe to ignore the `Undefined index` notices.  That will just
> appear if a variable is referenced without first being instantiated or
> defined.  No biggie, just put this at the head of your code:
>
> ini_set("error_reporting",E_ALL & ~E_NOTICE);

PLEASE DO NOT DO THIS!!!

Ignoring Undefined index notices will, sooner or later, waste your
time because you'll be trying to find a bug CAUSED by a typo that is
blatantly obvious if you pay attention -- but you'll waste days, maybe
weeks, trying to figure out what went wrong where.

Not to mention that there are a lot of OTHER E_NOTICE messages that
are more serious than "Undefined index"

Fixing your code is always a better option than ignoring error
messages about your code.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux