SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2007
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Finding out where the user is located?

    Hi
    I work for a big company and we would like to a different message for users based on their country. How can I achieve this? Is detecting someone's IP reliable? Does detecting someones IP slow down the page (I presume I would use PHP for this?)
    Thanks
    - Dan

  2. #2
    SitePoint Addict goldensona's Avatar
    Join Date
    Jun 2011
    Posts
    226
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    you can find ip using php,using ip find out the userlocation using maxmind apis

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2007
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is it better to do this (ie: is there a noticeable lesser impact on the server) than to use a 3rd party solution?

  4. #4
    Non-Member
    Join Date
    Apr 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your website Viewers IP Address, and IP Address details(country, ISP, address, etc.) can be displayed on your website. http://www.ip-details.com/ip-details-client/ is a reliable site from where you can get the IP Address Details & IP Address Search on your website.The process is simple, you just need to copy the codes from this site to yours!!!

  5. #5
    SitePoint Wizard wonshikee's Avatar
    Join Date
    Jan 2007
    Posts
    1,223
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    http://geoip.wtanaka.com/cc/255.255.255.255

    Ping that with the user's IP ($_SERVER['REMOTE_ADDR']) and you'll get the country.


Bookmarks

Posting Permissions

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