I'd like to obtain users IP's so that I can calculate certain statistics on web site activity. Is there a method in PHP to log users IP's?
or you can get it straight from $_SERVER eg $ip = $_SERVER['REMOTE_ADDR']; and then use a database from someone like http://ip-to-country.webhosting.info/ to trace the ip to a country. It's very simple and effective to use. It looks good when someone fills in a form and you already have the country selected. Sarah