public marks

PUBLIC MARKS with tags source-code & type:log

January 2006

September 2005

fredbird.org | Getting browser language settings with PHP

by fredbird
So, you run a multilingual web site with PHP and you want to serve the reader's choice language if available. No problem, HTTP carries user's language settings within Accept Language instruction, you just have to parse it. Here is a sample function

PUBLIC TAGS related to tag source-code

calendrier +   css +   date +   dev +   dom +   effect +   file +   form +   javascript +   lang:en +   lang:fr +   license:pd +   list +   resource +   ressource +   sort +   style +   textarea +   tool +   type:article +   validation +   web-dev +   xhtml +   xml +  

Active users

fredbird
last mark : 12/01/2006 15:44