Reply to Odd HTTP Variable Question

Your name:

Reply:


Posted by No_One on 03/18/06 09:08

I'm confused here...maybe someone knows and can explain.

I'm using a small drop in prog to manage some mysql databases at one of our
company sites....should have been a quick job.

The code, from phpMyEdit 5.4, is :

$opts['language']=$HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE'];

I get an error message displayed:

undefined index HTTP_ACCEPT_LANGUAGE

OK, now it gets strange...this only happens in Opera for Linux ver 8.52

All other browsers, netscape, mozilla etc, have no problems and report no
errors. If I use a script with phpinfo() the info correctly reports the
corect lanuage EN-US --- interestingly, opera shows nothing for this
variable

If I write a simple php script:

echo $HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE'];

I get an error in opera and no where else....

I don't understand why opera is reporting this error, more importantly, I
don't understand what a browser has to do with this server variable...

Any explanation appreciated or a link...something

ken

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация