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.
>
>
[Back to original message]
|