Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

setting $_SERVER['HTTP_ACCEPT_LANGUAGE']
IS there a way, in code, to SET

$_SERVER['HTTP_ACCEPT_LANGUAGE']

Or is it read-only?

-Ike



Report this thread to moderator Post Follow-up to this message
Old Post
Ike
04-27-05 08:56 AM


Re: setting $_SERVER['HTTP_ACCEPT_LANGUAGE']
Ike wrote:

> IS there a way, in code, to SET
>
> $_SERVER['HTTP_ACCEPT_LANGUAGE']
>
> Or is it read-only?
>
> -Ike

Why would you want to do that....

Peace,
Ryan Heuser

Report this thread to moderator Post Follow-up to this message
Old Post
Ryan Heuser
04-27-05 08:56 AM


Re: setting $_SERVER['HTTP_ACCEPT_LANGUAGE']
"Ike" <rxv@hotmail.com> wrote in message
news:piBbe.13817$lP1.9430@newsread1.news.pas.earthlink.net...
> IS there a way, in code, to SET
>
> $_SERVER['HTTP_ACCEPT_LANGUAGE']
>
> Or is it read-only?
>

What's the purpouse of doing so? It will not affect the users capability of
recieving languages even if you did change it... You can't teach the user a
language by setting a variable. For me it would take several years to learn
Spanish for example. It's taken me a good 15 years to learn English and I
know I still make mistakes.

It seems your trying to achieve something else and doing it the wrong way.
What is exactly what you were trying to do by setting http_accept_language?

--
Welcome to Usenet! Please leave tolerance, understanding
and intelligence at the door. They aren't welcome here.
eternal piste erection miuku gmail piste com



Report this thread to moderator Post Follow-up to this message
Old Post
Kimmo Laine
04-27-05 08:56 AM


Re: setting $_SERVER['HTTP_ACCEPT_LANGUAGE']
Yes, you guys are right. Im reyting to allow the user to specify pages in
various languages, but I think I will go the cookie route for that, using as
the default, if it exists. Thanks, Ike

"Kimmo Laine" <eternal.erectionN05P@Mgmail.com> wrote in message
news:kxFbe.11567$Ch3.7632@reader1.news.jippii.net...
> "Ike" <rxv@hotmail.com> wrote in message
> news:piBbe.13817$lP1.9430@newsread1.news.pas.earthlink.net... 
>
> What's the purpouse of doing so? It will not affect the users capability
of
> recieving languages even if you did change it... You can't teach the user
a
> language by setting a variable. For me it would take several years to
learn
> Spanish for example. It's taken me a good 15 years to learn English and I
> know I still make mistakes.
>
> It seems your trying to achieve something else and doing it the wrong way.
> What is exactly what you were trying to do by setting
http_accept_language?
>
> --
> Welcome to Usenet! Please leave tolerance, understanding
> and intelligence at the door. They aren't welcome here.
> eternal piste erection miuku gmail piste com
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Ike
04-27-05 01:56 PM


Re: setting $_SERVER['HTTP_ACCEPT_LANGUAGE']
"Ike" <rxv@hotmail.com> kirjoitti
viestissä:MDJbe.49$BE3.41@newsread2.news.pas.earthlink.net...
> Yes, you guys are right. Im reyting to allow the user to specify pages in
> various languages, but I think I will go the cookie route for that, using
> as
> the default, if it exists. Thanks, Ike
>

Basicly that's the way to do it. You can only use
$_SERVER['HTTP_ACCEPT_LANGUAGE'] to detect what languages user supports, but
you can't save anything to it. If none of the languages you serve were found
in that, then use the default. If you find a match from languages you serve
/ what languages user supports, then write it to cookie or session. On
subsequent pages see what's inside the cookie / session and serve that
language, if none, then default.

--
"I am pro death penalty. That way people learn
their lesson for the next time." -- Britney Spears

eternal.erectionN0@5P4Mgmail.com



Report this thread to moderator Post Follow-up to this message
Old Post
Kimmo Laine
04-27-05 08:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Language archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:29 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.