Re: E_NOTICE on php.net...

From: Date: Wed, 14 May 2003 00:23:07 +0000
Subject: Re: E_NOTICE on php.net...
References: 1 2 3  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-17591@lists.php.net to get a copy of this message
Yea I assumed :-) Anyway its better to make our scripts work even if the "visitor" doesn't have any accept_language :-) ----- Original Message ----- From: "Maxim Maletsky" <subscriptions@phpbeginner.com> To: <nicos@php.net> Cc: <php-mirrors@lists.php.net> Sent: Wednesday, May 14, 2003 2:24 AM Subject: Re: E_NOTICE on php.net... On Wed, 14 May 2003 00:47:49 +0200 <nicos@php.net> wrote: > "James Cox" <james@imajes.info> a écrit dans le message news: > MMEPJPGPACDMPGEEKFMKIECLLCAA.james@imajes.info... > > Ok, whilst debugging something else, I turned on E_NOTICE for php.net to > see > > if i could get a particular error message to appear. Instead for the 5 > > minutes it was on, I got 1.7mb of notices.... > > > > a 'uniq' snippet of them is here: > > > > # cat php|sed -e 's/\[.*\] PHP Notice: //g'|sort|uniq > > Undefined index: -1 in /local/Web/sites/phpweb/include/layout.inc on line > > 494 > > Undefined index: / in /local/Web/sites/phpweb/source.php on line 45 > > Undefined index: HTTP_ACCEPT_LANGUAGE in > > /local/Web/sites/phpweb/include/langchooser.inc on line 102 > > Undefined index: HTTP_ACCEPT_LANGUAGE in /local/Web/sites/phpweb/my.php > on > > line 93 > > I was wondering which default value we should use if HTTP_ACCEPT_LANGUAGE is > not set, should we use "en-us, en;q=0.50" ? Useless to say that it is usually a spider when this value is not set. -- Maxim Maletsky maxim@php.net

« previous php.mirrors (#17591) next »