Reply to Re: Notice: Undefined index

Your name:

Reply:


Posted by Rik on 01/24/07 13:30

On Wed, 24 Jan 2007 14:02:31 +0100, Alfred Wallace <popup@free.Fr> wrote:
> "Rik" <luiheidsgoeroe@hotmail.com> a écrit dans le message de news:
> op.tmnoibhiqnv3q9@misant...
>> On Wed, 24 Jan 2007 12:16:35 +0100, Alfred Wallace <popup@free.Fr>
>> wrote:
>>
>>> What is the directive to avoid having the notice:
>>>
>>> Notice: Undefined index...
>>>
>>> When a variable is not declared.
>>
>> To check wether it's declared before you use it, or set it to an empty
>> value at first.
> What about setting:
>
>
> error_reporting = E_ALL & ~E_NOTICE
>
> in php.ini??

As I suspected it's a PHP issue, so this has nothing to do here in
alt.apache.configuration.
Cross-posted to comp.lang.php, folluw-up to comp.lang.php.

1. Changing the error_reporting level to exclude E_NOTICS does not mean
there is none, just that you don't see it.
2. Notices are there for a reason. It's a sign of sloppy code. Code
correctly and you'll have none.
3. I'd even go as far as to say you that you shouldn't even have E_STRICT
warnings.

Take advantage of the notices given to you by PHP, your code will
(usually) be better for it.
--
Rik Wasmus

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация