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🥇
STOP GUESSING WHAT TO POST
AI that learns your brand voice and builds a month of consistent, on-brand social content: carousels, posts and hooks that sound like you, not like everyone else's AI.
SaaS · 4,313 views · 38 clicksSaaS · Week 45 · 4,313 views · 38 clicks
🥈
Conversational Backlinks for Busy Founders
Place Backlink Relevant Conversation for your domain across Forums and Conversations
Website · 42,047 views · 223 clicksWebsite · Week 45 · 42,047 views · 223 clicks
🥉
upvote.club
Free Social Media Engagement that Helps Boost Your Content. Upvote Club supports 19 social networks with 100+ engagement actions in one dashboard. Add links to your posts and get free engagement from real users.
SaaS · 40,092 views · 117 clicksSaaS · Week 45 · 40,092 views · 117 clicks
#4
Substack Posting API
Onboard your Agent to Substack. Write Publish on Substack via API
SaaS · 59,097 views · 198 clicksSaaS · Week 45 · 59,097 views · 198 clicks
#5
Seenshot App
Free, Fast, MacOS Screenshot app. Make Screenshot cmd+shift+2 and send it via link
Desktop App · 28,471 views · 122 clicksDesktop App · Week 45 · 28,471 views · 122 clicks
#6
Hand-Placed Backlinks $9.99 per link. Flat rate.
Buy hand-placed forum, Q-A and directory backlinks. Flat $9.99 per link, no subscriptions — you only pay for approved listings.
Website · 4,304 views · 19 clicksWebsite · Week 45 · 4,304 views · 19 clicks
#7
Free Invoice Generator - PDF Invoices in Your Browser, No Sign-Up
A free invoice maker for freelancers and small businesses: fill in the invoice, check the live preview, and download a PDF that looks exactly like it. Any currency, tax per item, three templates, no sign-up, and nothing leaves your device.
2,978 views · 17 clicksWeek 45 · 2,978 views · 17 clicks
#8
Merge PDF Files Free - Combine PDFs in Your Browser, No Upload
A free PDF merger for office workers, students, and freelancers: combine PDFs and images into one file in the browser, reorder files and pages, pick page ranges, keep bookmarks, and open password-protected PDFs. Nothing is uploaded, no sign-up, no watermark.
2,749 views · 13 clicksWeek 45 · 2,749 views · 13 clicks
