I have a lander that uses the following script:
<script language="JavaScript" src="http://j.maxmind.com/app/geoip.js"></script><script language="JavaScript">document.write(geoip_city()) ;</script>
which just outputs the user's city. I am having a problem where the page take too long to load and the status bar says "waiting for j.maxmind.com"
I need a server side solution or something faster. Anyone have recommendation?
Maxmind has the self hosted version.. http://www.maxmind.com/app/geolitecity
Install GeoIP php extension so you can call out user's city directly from PHP.
Also much faster than the JS version.
This.
MUCH faster and is as reliable as your server.
Any one got a good set of instructions for this? I have mod_geoip up and running, I can pull out the country data but not the city data. I tried changing the db's but I didn't have much luck. I'm on a vps with centos 5.6 running apache 2.2 and php 5.2.14.
I know I'm close but missing something simple, so any advice would be great.
Thanks!
what you mean changing db, might be permssion issue, get your hosting provider to resolve for ya
By Changing db I mean changing the db that mod_geoip is using to geoip_city_lite. I believe it uses the db that contains the country info by default.
@leber026 : according to the site, mod_geoip only display country info, if you want to use geoip_city_lite
here is an old site :
http://www.dinke.net/blog/en/2006/11...tion-to-geoip/
Right, thats my problem. mod_geoip defaults to using the country only db. I swapped out the db to geoip_city_lite but still couldn't get mod_geoip to pull the city data. I'm not really sure what else to change to get the city info. (Guessing I might have to recomplie mod_geoip, but thats above my current skill set unless I get some good directions) I had it running on an old server with out much issue, some reason this vps is giving me problems.
If not mistaken mod_geoip not support city info
Here is my script for the geoip city, it point to the city db, just change the necessary paths...no compilation needed.
Thanks, but do you mind posting that again, looks like it was and invite url? I keep getting and error saying someone else already accepted the invite.
http://ctrtard.com/code/blazing-geo-...n-your-server/