V
V
vgrayster2010-10-17 19:41:44
PHP
vgrayster, 2010-10-17 19:41:44

How to use GeoLite ASN in php?

maxmind has an ip conversion base in ASN
www.maxmind.com/app/asnum

someone has an idea how to use it in php, there is no special function for asn, and when you try to use it as an organization base, you get an error that it is not correct base format.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
pwlnw, 2010-10-18
@vgrayster

In php, bindings are not very convenient, so you will have to replace the file as if it were the GeoIPOrg.dat base.
I have it read by the function geoip_org_by_name.
on 8.8.8.8 returns the organization name "AS15169 Google Inc."

S
Sergey, 2010-10-18
@liaren

The best solution I've found is to use the IpLoc library , which converts their CSVs into an optimized form stored in MySQL. Works very fast.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question