Country Detect & Redirect

Description
Class that lookup’s for a country code then it redirects (include files, or callbacks) the user to desired content you want. The function of this class is like Google that redirects users from countries that support google e.g. in UK when you enter google.com you will be redirected to google.co.uk and this is exactly what you can do with CountryDetector
This class is builded in static context for purpose of best usage. Also it is very easy to implement
Update: 21 Nov, 2012
We present you two new functions to simplify the work of handling country codes. These functions are:
CountryDetect::getCountryCode();
It returns the current country code of user in two (or three sometimes) uppercase initials.
The second CountryDetect function is “is($country_code)”, so you can easily check if its a specified country code in order to take an action.
CountryDetect::is($country_code);
It returns true or false, based on the condition of specified country code, which is case iNsEnSiTiVe.
Examples about usage of these functions are located on examples/7_get_country_code.php.
Updated
There is added another function called
includeFileOnce
for purposes when you want to include just once a file, and ignore other below declaration lines
Features
- Country detect then redirect
- Country detect then include a specific file
- Country detect then call a function defined by you (callback)
| Type | PHP Script |
|---|---|
| Author | Laborator |
| Category | Php Scripts / Navigation |
| Price | $26 |
| Sales | 577 |
| Rating | 4.40 from 77 ratings |
| Published | Feb 26, 2010 |
| Last Update | Nov 1, 2012 |
| Compatible Browsers | IE7, IE8, IE9, IE10, IE11, Firefox, Safari, Opera, Chrome, Edge |
| Compatible Software | PHP 8.x, PHP 7.x, MySQL 8.x, MySQL 5.x, Other |
| Source Files Included | HTML, PHP |
Categories
Tags
External listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.
Products of the Week.
Submit🥇
Free LinkedIn Likes From Real Members | LinkedInLikes
Get free LinkedIn likes on your posts from real members who react by hand. No password needed: you only share a link.
Website · 12,847 views · 46 clicksWebsite · Week 49 · 12,847 views · 46 clicks
🥈
Free Medium Claps From Real Writers | MediumPlace
Free Medium claps on your stories from verified accounts of real writers, each given by hand. No bots, no Medium password, nothing to pay. Paste a link.
Website · 7,964 views · 10 clicksWebsite · Week 49 · 7,964 views · 10 clicks
🥉
Free GitHub Stars From Real Developers | GitWow
Get free GitHub stars on your repository from real developers who star by hand. No token or password, and it's free.
Website · 15,624 views · 28 clicksWebsite · Week 49 · 15,624 views · 28 clicks
#4
Free Substack Likes From Real Writers | StackRooms
Free Substack likes on your posts and Notes from verified accounts of real writers, given by hand. Free to ask, free to receive. Just share a link.
Website · 7,784 views · 2 clicksWebsite · Week 49 · 7,784 views · 2 clicks
#5
Free Twitter Likes From Real People | SupaTwitter
Free Twitter likes on your tweets from verified accounts of real people, each given by hand. No bots, no Twitter password, nothing to pay. Paste a link.
Website · 7,679 views · 4 clicksWebsite · Week 49 · 7,679 views · 4 clicks
#6
Free X Likes From Real People, Given by Hand | XFast
Free X likes on your posts from verified accounts of real people, each one given by hand. No bots, no X password, no conditions. Paste a link to start.
Website · 7,591 views · 0 clicksWebsite · Week 49 · 7,591 views · 0 clicks
