You are here: Re: "Notice: Undefined ..." - Ok to turn off / ignore these notices? « PHP Language « IT news, forums, messages
Re: "Notice: Undefined ..." - Ok to turn off / ignore these notices?

Posted by Steve Belanger on 04/20/07 17:12

in your PHP script you can do something like that:

error_reporting(E_PARSE | E_ERROR);


that will filter the errors being reported so that the only information
being sent will be either fatal errors or parse errors.

Hope this helps.
Steve.


"cluthz" <WHATEEVVEERR@by.co.uk> wrote in message
news:nt6Wh.4585$Ro3.3363@text.news.blueyonder.co.uk...
> Hi,
>
> I had some developers creating some code for me and on what they produced
> it started giving the following error at the top of the page:
>
> Notice: Undefined index: PATH_TO_FILE\file.php on line 10
> Notice: Undefined variable: html in PATH_TO_FILE\file.php on line 24
> Notice: Undefined index: tagData in PATH_TO_FILE\file.php on line 56
>
> When I told them about this they said I need to set the php.ini file to so
> that
> error_reporting = E_NOTICE
> is not on.
>
> Is this a valid point or is this a way of dodging work?
>
> I would rather keep warnings / error messages on for other development
> work.
>
> What do others think?
> Thanks in advance.
>
>

 

Navigation:

[Reply to this 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

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