Jump to content
xisto Community
contactskn

How Can We Get The Details Shown By Who Is For Any Ip Address On Our Site.

Recommended Posts

Hi friends,Now that we can easily find the details about any IP address in who is including the locations etc. I want to know how can we get the details shown by who is for any IP address on our site. That is I want to show all these details on my web site on the basis of any IP address. Thanks in advance.

Share this post


Link to post
Share on other sites

I always use this simple code:

<?php echo $_SERVER["REMOTE_ADDR"]; ?>

It sends out the IP address of the current user. Therefore each user who visits their website gets a different value.


after you have echoed it you may choose to store it in a database and retrieve it as an array later on (for listing, comparing etc)

Share this post


Link to post
Share on other sites

I think one would need to buy the database from ip2location to get such type of info from an ip address. hey even have latitude, longitude, city etc. The free service on their website offers 20 lookups per day.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.