WordPress.org

Ready to get started?Download WordPress

Forums

WordPress and Geolocation (1 post)

  1. max302
    Member
    Posted 8 years ago #

    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=24.122.124.9): 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

Topic Closed

This topic has been closed to new replies.

About this Topic