IP information

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • windandwaves

    #1

    IP information

    Hi Folk

    As part of my statistical analysis of the visitors to my site, I record
    people's IP address. Is there an easy way to get more information (where
    people are from, maybe even long. and latitude) or perhaps translate the IP
    address into a named address?

    TIA
    [color=blue]
    > Nicolaas[/color]


  • Janwillem Borleffs

    #2
    Re: IP information

    windandwaves wrote:[color=blue]
    > As part of my statistical analysis of the visitors to my site, I
    > record people's IP address. Is there an easy way to get more
    > information (where people are from, maybe even long. and latitude) or
    > perhaps translate the IP address into a named address?
    >[/color]

    For the latter, you could use gethostbyaddr() :

    PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.


    To get detailed information, you could use a database service like the one
    from maxmind:




    JW


    Comment

    • Toby Inkster

      #3
      Re: IP information

      windandwaves wrote:
      [color=blue]
      > As part of my statistical analysis of the visitors to my site, I record
      > people's IP address. Is there an easy way to get more information (where
      > people are from, maybe even long. and latitude)[/color]

      Google: Geo IP.
      [color=blue]
      > perhaps translate the IP address into a named address?[/color]

      Of course -- it's called DNS.

      --
      Toby A Inkster BSc (Hons) ARCS
      Contact Me ~ http://tobyinkster.co.uk/contact

      Comment

      • windandwaves

        #4
        Re: IP information

        Janwillem Borleffs wrote:[color=blue]
        > windandwaves wrote:[color=green]
        >> As part of my statistical analysis of the visitors to my site, I
        >> record people's IP address. Is there an easy way to get more
        >> information (where people are from, maybe even long. and latitude) or
        >> perhaps translate the IP address into a named address?
        >>[/color]
        >
        > For the latter, you could use gethostbyaddr() :
        >
        > http://www.php.net/manual/nl/function.gethostbyaddr.php[/color]

        I searched for IP on php.net, but could not find it. Sorry and thank you
        [color=blue]
        >
        > To get detailed information, you could use a database service like
        > the one from maxmind:
        >
        > http://www.maxmind.com/app/php[/color]

        That is just super cool.

        Thank you
        [color=blue]
        > Nicolaas[/color]


        Comment

        • mkwong8888@hotmail.com

          #5
          Re: IP information

          You can visit http://www.ip2location.com for their free PHP module.

          Comment

          Working...