Results 1 to 3 of 3

Thread: php/ip finder

  1. #1
    Join Date
    Jun 2008

    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
    $_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).
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

  3. #3
    Join Date
    Jun 2008
    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.

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