Awesome q2a theme

How to use GeoLite ASN in php?

0 like 0 dislike
From maxmind is the base transformation ip to ASN

anybody have ideas like this in php to use special functions under the asn is not present, and when you try to use as a Base organisation, it turns out the error that it is not correct database format.
by | 24 views

2 Answers

0 like 0 dislike
Php is not very convenient binding, so you'll have to replace the file as if it was the base GeoIPOrg.dat.
I have read function geoip_org_by_name.
on returns the name of the organization "AS15169 Google Inc."
0 like 0 dislike
The best solution I found — use the library IpLoc, which envelopes them CSV in an optimized view with storage in MySQL. It works very quickly.

No related questions found

110,608 questions
257,187 answers
40,796 users