PHP GeoIP

Web hosting discussion, programming, and shared and dedicated servers.
4 posts Page 1 of 1
by racerlupine » Thu Jul 04, 2019 7:04 pm
Can someone tell me whether the GeoIP plugin for PHP in enabled on sh.sonic.net?

thanks

RACER
by drew.phillips » Fri Jul 05, 2019 5:03 pm
Hi RACER,

The PHP GeoIP extension is not installed on the shell server. Instead, I would suggest using https://github.com/maxmind/GeoIP2-php and a local copy of the GeoIP database that you acquire (if not the API).
Drew Phillips
Programmer / System Operations, Sonic.net
by racerlupine » Fri Jul 05, 2019 7:42 pm
Drew,

Thanks for the reply.

The PHP GeoIP extension is not installed on the shell server.


I suspected as much. The only reason I asked is, I found some GeoLite2 database files in /usr/share/GeoIP. Can I point my maxmind functions to them? They appear to be pretty current.

I'm not sure I need to mess with the API. But that's just it, I'm not sure...

thanks

RACER
by drew.phillips » Wed Jul 10, 2019 1:23 pm
It looks like those are updated and are copies of the new free geolite2 databases found at https://dev.maxmind.com/geoip/geoip2/ge ... #Downloads so it looks like you can point your functions at those, and barring any major changes, they should remain at that location and available for a long time.
Drew Phillips
Programmer / System Operations, Sonic.net
4 posts Page 1 of 1

Who is online

In total there are 3 users online :: 1 registered, 0 hidden and 2 guests (based on users active over the past 5 minutes)
Most users ever online was 422 on Sat May 26, 2012 5:28 am

Users browsing this forum: Google [Bot] and 2 guests