chrislim2888 / IP2Location-PECL-Extension

This PECL extension allows you to find the location of an IP address - country, region or state, city, latitude and longitude, US ZIP code, time zone, Internet Service Provider (ISP) or company name, domain name, net speed, area code, weather station code, weather station name, mobile country code (MCC), mobile network code (MNC) and carrier brand, elevation, usage type, address type and IAB category.
https://www.ip2location.com
Other
9 stars 5 forks source link

where does the data file go? #4

Closed tobsn closed 7 years ago

tobsn commented 9 years ago

where should I put the .BIN to make sure it choses the right one?!

I used pecl install ip2location

chrislim2888 commented 9 years ago

You can put anywhere or the same folder of your php file. The path will be determined by the ip2location_open call.

tobsn commented 9 years ago

couldn't you load the BIN on php startup (source path in php.ini) without including it every time and providing the data of the current client via _SERVER vars? it seems not very performant to open() it every time.

(we're on nginx/fpm)

On Nov 18, 2014, at 08:04, Chris notifications@github.com wrote:

You can put anywhere or the same folder of your php file. The path will be determined by the ip2location_open call.

— Reply to this email directly or view it on GitHub.