I am trying to make a log of users heading to my website. I want to save their IP addresses, as well as city and country info.
Thanks in Advance.
I am trying to make a log of users heading to my website. I want to save their IP addresses, as well as city and country info.
Thanks in Advance.
You can get the IP from $_SERVER['REMOTE_ADDR']
. To get location you will have to find some service that provides lookup and check the IP you just collected.
You might also consider signing up for Google analytics.