IP to country/location libraries


IP to country/location libraries

Published on Sat 21 Jul 2007 02:07 ( 3 years, 1 month ago)
PHP Java Web

Save here for future use.

PHP & Java version

Link: http://firestats.cc/wiki/ip2c

IP2C

IP2C is a small library that provides IP to country resolution using a binary file.
The binary file is compiled f2rom ip-to-country free database and takes only about 500kb (the CSV takes about 3.5mb).

License

IP2C is released under the terms GPL v2.

Supports

  • Command line
  • Java
  • PHP

Performance

All tests done on an Athlon XP 3200+.
PHP:

  • No cache: About 1200 searches in a second.
  • Cache: not implemented (Want to help?)

Java:

  • No cache: About 8000 searches/second.
  • Memory cache: About 180,000 searches/second.

Download

ip2c 1.4.3 (Database version : 2007.3.5)

C# version

http://www.extremeoptimization.com/resources/Concept/

Source download: http://www.codeproject.com/csharp/IPLookupOptimise.asp


Related posts:


Search related in web:

Custom Search

RSS Feed

One click subscribe this blog in your google reader!

Be social!


Want to say something here? please sign in



Blog posts link to this page
What are friends tweeting?
Tags cloud
Monthly Archives