|
Lambda GeoIP - Geo-targeting script
-
Version
1.3
Lambda GeoIP is a PHP Geo-targeting and geo-location
script that you can use with any existing website or
script. You can forward a user based on their physical
location, display the user's location, or display the
closest major city of a given population. Based on the
user's IP address you can determine the following:
Continent Country Region (State in the US) City Postal
Code Area Code Latitude Longitude ISP You can easily
forward a user with just one line of code. For example,
the following code will forward all users in the UK to
another URL. geoip_forward_country("UK",
"http://www.mysite.co.uk");. You can display the user's
geolocation data with one line also. The following code
outputs the user's city, region, and country: echo
geoip_format("%city, %region, %country");. Displaying
the closest major city is a breeze as well. The
following code displays the nearest major city with a
population of 2 million people or more: echo
geoip_closest_city("%city, %region", 2000000);. For a
full list of features and short examples, visit
www.lambdageoip.com.
|