Please also check out "error_reporting" in 'php.ini',
there you can turn off Notice reporting.

But for future reference, it's a good idea to define vars
before you use them, to avoid problems down the road
like vars already having values that you didn't count on
(if you use register_globals).

--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Dash McElroy" <[EMAIL PROTECTED]> wrote in message
ABA3F1F1A223D411BE6C006008A6F7E260434D@MSX1-PTON">news:ABA3F1F1A223D411BE6C006008A6F7E260434D@MSX1-PTON...
> PHP will also bark at you if you don't put quotes around other functions,
> like date:
>
> date(mdy); will bark at you while:
> date("mdy"); will not.
>
> -Dash
>
> -----Original Message-----
> From: Uwe Birkenhain [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, June 30, 2002 9:54 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Re: errormessage: undefined variables - why define them?
>
>
> It was again very easy,
> I woke up this morning (at 6) and remembered that there are different
> possibilites to adjust the behavior of errormessages in php.ini - and that
> was it: "show all errormessages and warnings" - what I never have on the
> server. And then php will will warn me - and will later fill that variable
> with an empty string.
>
> Thanks for the help,
> Uwe
>
> But there remains the question why the programs are not running anyway - but
> I will try first.
>
> I nice and sunny week to everybody!
>
>
> Uwe Birkenhain schrieb in Nachricht
> <[EMAIL PROTECTED]>...
> >Hi everybody,
> >I have PHP 4.21 since today running on my win98-PC (YEAH!)
> >
> >Now I try the programs which I usually use on a webserver -
> >they work basically, but I get a lot of errormessages like "Undefined
> >variable: mod in ....."
> >
> >Two questions:
> >- is it now neccessary to define variables before I use them??? Or is it a
> >windows-problem? Or what?
> >- some of the undefined variables are defined, but in an include-file - why
> >might this be a problem?
> >
> >Thank's a lot for any help,
> >Uwe
> >
> >
>
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



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

Reply via email to