AW: [PHP-WIN] should i be concerned about these "Use of undefined constant xxxx - assumed 'xxx'..." notice warnings???
| From: | (Sven Schnitzke) | Date: | Tue, 29 Apr 2003 07:52:58 +0000 |
| Subject: | AW: [PHP-WIN] should i be concerned about these "Use of undefined constant xxxx - assumed 'xxx'..." notice warnings??? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-19709@lists.php.net to get a copy of this message | ||
Hi Leo,
sure you can turn off the notices as suggested by Philippe and toby.
Especially simple scripts just pragmatically set up to get things done
within a blink aren't worth worrying.
To get this to work I settle with
display_errors = off
log_errors = on
error_reporting = E_ALL
error_log = filename_here
and keep an eye on the error log. You always can write a script in
a way it doesn't have to mumble regularly. So you tend to write clean
production scripts and can let loose on your one trick ponys.
As with this "Use of undefined constants ... thing: these are quite often
due to forgotten $ in front of variables and are definitely worth taking a look
at!
On the other hand: it is generally a bad idea to use anything uninitialized.
Even if it works now, it carries an assumption one tends to forget. So you
will most likely get caught when you enhance the script later on.
Regards
Sven
> -----Ursprüngliche Nachricht-----
> Von: toby z [SMTP:blue_myth_1@yahoo.com]
> Gesendet am: Dienstag, 29. April 2003 06:57
> An: Leo G. Divingracia III; php-windows@lists.php.net
> Betreff: Re: [PHP-WIN] should i be concerned about these "Use of undefined constant xxxx -
> assumed 'xxx'..." notice warnings???
>
> hay leo
>
> locate n turn the following errors off in ur php.ini
>
> -----------------
>
> display_errors = On
>
> display_startup_errors = Off
>
> log_errors = Off
>
> track_errors = Off
>
> ;html_errors = Off
>
> warn_plus_overloading = Off
>
> -------------------------------
>
> this otta do the trick fo u i guess
> since u say ur code works fine even with the errors ur getting
>
> hope ive helped
> good luck
>
> toby .... :)
>
> --- "Leo G. Divingracia III" <ldivinag@csuhayward.edu> wrote: >
> > i'm getting these "notices":
> >
> > Use of undefined constant csuh_tag - assumed 'csuh_tag' in
> > c:\foxserv\www\inventory\test3.php on line 20
> >
> > they work and all, but i want to run clean and true PHP code.
> > should i
> > worry? or just let it go? the stuff works...
> >
> > running 4.3.0 on a win2k box with globals off...
> >
> > thanks...
> >
> > --
> > Leo G. Divinagracia III
> > ldivinag@csuhayward.edu
> >
> > zzzzz
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> __________________________________________________
> Yahoo! Plus
> For a better Internet experience
> http://www.yahoo.co.uk/btoffer
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php