Login   Register  
PHP Classes
elePHPant
Icontem

HTTP Locale: Get the idiom and country of the user browser

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-02-25 (7 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,004 All time: 3,390 This week: 1,547Up
Version License PHP version Categories  
httplocale 1.0Artistic License4.0.6Localization, HTTP
Description Author  

This is a very simple class that can determine the idiom and country of the user browser.

It analyzes the HTTP request header Accept-Language and parses it to obtain the idiom and the country used in the browser accessing the current script page.

The idiom and the country are returned in class variables.

Picture of Alexander Skakunov
Name: Alexander Skakunov is available for providing paid consulting. Contact Alexander Skakunov .
Classes: 8 packages by
Country: Ukraine Ukraine
Age: 32
All time rank: 281 in Ukraine Ukraine
Week rank: 27 Up2 in Ukraine Ukraine Down
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

Screenshots  
  • example.png
  Files folder image Files  
File Role Description
Plain text file HTTPLocale.class.php Class It makes all job
Accessible without login Plain text file index.php Example Usage example
Accessible without login Plain text file php_localizator.php Example example for gettext

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,004All time:3,390
 This week:0This week:1,547Up