www.webdeveloper.com
Results 1 to 4 of 4

Thread: php/ip finder

  1. #1
    Join Date
    Jun 2008
    Posts
    270

    php/ip finder

    How would I go about finding the ip address of my viewer and then figuring out what city/state they are viewing from? Thanks for the help. I hope this is understandable.

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,148
    $_SERVER['REMOTE_ADDR'] to get the IP, then subscribe to or buy an IP-to-location database (or try one of the free ones, though you may get what you pay for).
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Jun 2008
    Posts
    270
    Nice NogDog! Thanks for help. I am pretty newbie to serverside stuff and I really appreciate people like you who make my world a lot easier.

  4. #4
    Join Date
    Feb 2013
    Posts
    1
    good answer
    _____
    tutalib

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles