bluemonster wrote:$_SERVER['REMOTE_ADDR'] to get IP address.
Yes. $_SERVER, not getenv.
How to get actual IP address, mine IP address is unknown?
I don't understand the question.
How you use IP Address to determine the country?
Get an ip-to-country database (these are available for free) and do the required lookups. There are examples around.
It's not 100% reliable though.
Mark