|
|
Choosing A Webhost: |
AW: should i be concerned about these "Use of undefined constant xxxx - ass: msg#00493php.windows
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> |
|---|---|---|
| Previous by Date: | Re: should i be concerned about these "Use of undefined constant xxxx - assumed 'xxx'..." notice warnings???, Per Lundberg |
|---|---|
| Next by Date: | WTF ? !, Neil Smith |
| Previous by Thread: | should i be concerned about these "Use of undefined constant xxxx - assumed 'xxx'..." notice warnings???, Leo G. Divingracia III |
| Next by Thread: | WTF ? !, Neil Smith |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive 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 |