Need the above module to determine the country by IP address in PHP.
With pleasure would take a third-party, but unfortunately immediately I would not have found due to my conditions. I would take "GeoIP", but there as I understand we need certain movements of the host, not for me. Solutions using MySQL or referral to external resources are also not suitable.
Need roughly speaking a local file ***.php (for example included with a local database in the format of CSV, XML, TXT ...), connecting to call the desired function.
Rummaging in the bins of the Internet found itself a base on maxmind.com — there is a binary format and CSV. Now began to write the script in PHP working with this database, but if someone tell me the finished script, I'd be grateful.