By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,047 Members | 1,253 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,047 IT Pros & Developers. It's quick & easy.

Getting Content-Language info?

P: n/a
Okay, now I'm fuzzy on this...

As I understand it, when the browser sends its request ot the web-
server, there's a bunch of associated metadata sent along with it-
including the Content-Language info (such as en_UK... british english
is the language set in the browser.)

Assuming I'm not completely wrong-headed about this... how do I find
out the values of those various metadata sent in the request header?

-Derik

Feb 1 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Rik
<Re********@aol.comwrote:
Okay, now I'm fuzzy on this...

As I understand it, when the browser sends its request ot the web-
server, there's a bunch of associated metadata sent along with it-
including the Content-Language info (such as en_UK... british english
is the language set in the browser.)

Assuming I'm not completely wrong-headed about this... how do I find
out the values of those various metadata sent in the request header?
In this case: $_SERVER['HTTP_ACCEPT_LANGUAGE']
The $_SERVER array will hold among other things (most of?) the variables
set by the browser.

Also, in Apache you can use apache_request_headers():
http://www.php.net/apache_request_headers
--
Rik Wasmus
Feb 1 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.