error_reporting (E_ALL ^ E_NOTICE);

http://www.php.net/manual/en/function.error-reporting.php

I personally change my php.ini setting to:

error_reporting  =  E_ALL & ~E_NOTICE

Then at the top of my scripts which I want to debug I add the line:

error_reporting(E_ALL);



Plutarck

"Tarrant Costelloe" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Whenever I use  the <? if ($submit) >? statement in a php page it always
> comes up with:
>
> Warning: Undefined variable
> Until the submit has been hit, and then it continue on with the rest of
the
> script fine ( ifelse).
>
> How do you stop this warning message?
>
> Thanks in advance!
>
> Tarrant Costelloe
> Web Developer
> InsurE-com Ltd.
> ------------------------------------
> Office Tel:  +44 (0)1273 852014
> Mobile: +44 07714087114
> [EMAIL PROTECTED]
> http://www.insur-e.net
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to