Hi In have one pligg based website (totalpad.com) where, in Admin mode I can view users' last login IP address. Is there any way that it can show Country name (with or without flag) based upon the last loging IP address. Please see the picture for current screen of user profile (for admin use) Thanks
Hi create a databse on IP and corresponding country. extract data from the databse. i hope you will find a database in the web.
Are you guys kidding? Its not even $5 worth job to do. All I can give is $10 to someone who can do it. Thanks
I have uploaded IP2C database file. I already have mysql database table which stores the IP addresses. I am not the programmer, Can someone please advise what to write to grab the data & show country name? thanks
It's very easy. Just grub the information of the IP and Country with a variable and do an INSERT to put the info in the database. Send me a PM with your email/msn and i'll help you with that.. I'm not going to charge you, but i'm not going to do it FOR you, just help you..
i gave you the idea, but when i check the database i found it will be difficult for a non programmer to do all the tricks. then i mad my bid. but any way best of luck to your work.
You can find free database online, search google. I saw one the other day, just can't remember where it was, but was open source.
Alternative method is using hostip's API. http://api.hostip.info/country.php?ip=xx.xx.xx.xx (xx.xxx.xx.x is the IP address) Use cURL to fetch the data <?php $ip=$_SERVER['REMOTE_ADDR']; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"http://api.hostip.info/country.php?ip={$ip}"); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); $country=curl_exec ($ch); curl_close ($ch); echo $country; ?> PHP: