Zend - The PHP Company




Code Gallery: tgotchi


Lookup Country by IP Address  

Type: code fragment
Added by: tgotchi
Entered: 21/10/2002
Last modified: 31/10/2001
Rating: - (fewer than 3 votes)
Views: 9950
This PHP script shows how to lookup country origin by using visitor's IP address. This example required an external ACCESS database for lookup purpose. Full database is available at http://www.location.com.my. Developers use this script for projects related to: 1. Display native language and currency 2. Redirect based on country 3. Digital rights management 4. Prevent password sharing and abuse of service 5. Reduce credit card fraud 6. Web log stats and analysis 7. Auto-selection of country on forms 8. Filter access from countries you do not do business with 9. Geo-targeting for increased sales and click-thrus 10. And much, much more!




Search