![]() ![]() is possible without using the mysql version. It is not a general-purpose GIS database, and will not work for that purpose, as there are some locations which wont be returned for any IP. I would prefer to use only the binary version since it's faster, but now I am not sure if the displaying of all zips under a certain city or all states under a certain country, etc. The GeoIP database is intended for one purpose, and one purpose only: to return location information for an input IP. Is there no way to get these lists by querying the binary file? or do I have to handle all that from the mysql version? For example I need to do this in the registration form. My issue is, there are parts of my site where I need to display all the cities under a particular state, or all the states/regions in a particular country. I don't really need anything beyond this like network speed, ISP, etc. $record = geoip_record_by_addr($gi, $user_ip) $gi = geoip_open("GeoLiteCity.dat", GEOIP_STANDARD) ![]() The following code gives me all the information I need about my visitors: include("geoipcity.inc") I am using the binary version of MaxMind's GEOIPCITY database.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |