Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

AW: should i be concerned about these "Use of undefined constant xxxx - ass: msg#00493

php.windows

Subject: AW: should i be concerned about these "Use of undefined constant xxxx - assumed 'xxx'..." notice warnings???

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@xxxxxxxxx]
> Gesendet am: Dienstag, 29. April 2003 06:57
> An: Leo G. Divingracia III; php-windows@xxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxx
> >
> > 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

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




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qplus.devel/200...    network.jabber....    debian.qa-packa...    encryption.gpg....    python.dabo.dev...    uclinux.devel/2...    science.mathema...    recreation.pesc...    kernel.ck/2004-...    mozilla.devel.e...    tex.latex.prosp...    ietf.multi6/200...    bbc.cvs/2002-11...    xfree86.newbie/...    jakarta.taglibs...    altlinux.hardwa...    comedi/2002-05/...    horde.bugs/2004...    games.diplomacy...    finance.e-gold....    web.dom.test-su...    lang.ruby.rails...    os.netbsd.devel...    video.gstreamer...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation