I have a homemade script on my blog’s header to record visitors and there geographical position in a mysql database. I have however run into problems with the hostip.info api. What I want to do is IP lookup each new guest and store their location in a database. I try to run a file() on the location of the ip lookup page on hostip and I get the following error:
Warning: file(http://api.hostip.info/get_html.php?ip=126.96.36.199): failed to open stream: No route to host in /home2/tales/public_html/wp-content/themes/default/header.php on line 63
So obviously, my geolocating function isn’t going anywhere. My homemade script can be found at http://www.talesofanoob.er1.be/download/visitlog/visitlogger.txt
- The topic ‘WordPress and Geolocation’ is closed to new replies.