I need to detect the Country and Language according to the OS settings

Discussion in 'PHP' started by Dellius, Oct 13, 2007.

  1. #1
    Hey mates ;-)

    I need to detect my users' language, timezone and country according to the locale settings they used in the Windows Control Panel.

    I need it so I could server my users specific content according to this information.

    I would appreciate if give me some tips.
     
    Dellius, Oct 13, 2007 IP
  2. Maloid

    Maloid Peon

    Messages:
    69
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can use $_SERVER["HTTP_ACCEPT_LANGUAGE"] to get the language where the first one should be the OS language I guess.

    For the country and timezone, you probably need to use GeoIP to get that information because that information isn't sent to the server
     
    Maloid, Oct 13, 2007 IP
  3. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #3
    Barti1987, Oct 13, 2007 IP