IP to country/location libraries
Published on Sat 21 Jul 2007 02:07 ( 3 years, 1 month ago)
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:
- My GAE toy: Site Traffic Comparer
- Display alexa traffic image elsewhere
- Get Alexa image signature.
- HTML Combobox
- ASP.NET MVC is out! (though it's a preview version...)
- Some new sort of spams...really boring
- TwitterPress 0.1 preview version ready to download!
- YSlow, web site performance tool
- The best analytics plugin I ever seen: Geotrack Plugin (2.0.2)
- A elegant simple cache class for PHP 5
Search related in web:
Custom Search