Country Detect & Redirect

CodeCanyon Country Detect & Redirect 89383
Script \ PHP Script \ Navigation
Country \ Include \ Function \ Google \ Detect \ Functions \ Redirect \ Redirects

PHP Script - Country Detect & Redirect 89383 by Laborator @ CodeCanyon

Script \ PHP Script \ Navigation

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 you will be redirected to 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.

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.

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


for purposes when you want to include just once a file, and ignore other below declaration lines


- Country detect then redirect

- Country detect then include a specific file

- Country detect then call a function defined by you (callback)


Last Update: N/A; High Resolution: No; Compatible Browsers: IE6, IE7, IE8, Opera; Files Included: HTML, PHP; Software Version: PHP 5.3.

Like 2 Discount - Coupons for Likes; AsyncSlider; Mini Back-end Gallery; Flipper Poll; eContactor; Cute Menu - 8 transitions pack; Data Security Class.

Keywords: country callback, country detector, country include file, country redirect.

Create CodeCanyon Country Detect & Redirect 89383 style with After Effect, Cinema 4D, 3DS Max, Apple Motion or PhotoShop. CodeCanyon Country Detect & Redirect 89383 from creative professional designers. Full details of CodeCanyon Country Detect & Redirect 89383 for digital design and education. CodeCanyon Country Detect & Redirect 89383 desigen style information or anything related.


Add Comments:
Enter Code: *