Tongue sensitive web content

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
simonsavo
Forum Newbie
Posts: 1
Joined: Wed Nov 02, 2005 8:10 am

Tongue sensitive web content

Post by simonsavo »

Dear all,

i'm tring to develop my website with some PHP features.

I'd like to know if php codes can check visitors' computer tongue and load web content based on this information.
I mean english website if user computer language is english and so on...

Thanks in advance
Simone
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

my guess is you'd have to check the remote ip address, and base the language on the country the visitor is coming from...

but there's probably a better way
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
ambivalent
Forum Contributor
Posts: 173
Joined: Thu Apr 14, 2005 8:58 pm
Location: Toronto, ON

Post by ambivalent »

Might be able to do something with $_SERVER['HTTP_ACCEPT_LANGUAGE']
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you can also fall back to look at the user agent string as it often contains the browser's installed language.. however you should also have a default in case none of the information is available..
Post Reply