How do I log IP addresses to a mysql database and also note the domain name (so it can be displayed in a summary of who is coming from where).
I can use $_SERVER["REMOTE_ADDR"] to get an IP, but I want the domain the IP is from.
Is there PHP code to do this?
any help greatly appreciated.