Class that look up’s for a country code then it redirects (come with information, or callbacks) the consumer to desired content you need. The serve as of this elegance is like Google that redirects customers from international locations that support google e.g. in UK whilst you enter google.com you're going to be redirected to google.co.uk and this is exactly what you can do with CountryDetector
This elegance is builded in static context for function of absolute best utilization. Also it is very easy to implement
Update: 21 Nov, 2012
We provide you new purposes to simplify the paintings of handling country codes. Those functions are:
CountryDetect::getCountryCode();It returns the current us of a code of person in two (or 3 on occasion) uppercase initials.
the second one CountryDetect serve as is “is($country_code)”, so you'll easily take a look at if its a special country code in order to take an motion.
It returns real or fake, in keeping with the condition of precise u . s . code, that's case iNsEnSiTiVe.
Examples about usage of these functions are located on examples/7_get_country_code.php.
Updated
There Is added some other serve as referred to as
includeFileOnce
for purposes while you wish to have to include only once a report, and forget about different below statement strains
Features
- Country discover then redirect
- Usa discover then include a specific file
- U . S . come across then name a function outlined by you (callback)
Requirements
PHP 5
FULL DOWNLOAD
No comments:
Post a Comment