WHY RELY OR THIRDPARTY SITES TO GET THIS SMALL INFORMATION? As usual, another script comes out for all of our community members, espeically developers who wish to do this task and need to rely on third-party ip2country services, and sometimes when such services' link go outdated and expired, your script becomes malfunctioning. Then why not have our own small approximately 3 MB database of IP addresses that can provide us complete information about our user. The scripts are 100% my very own written. Download: http://www.apitalk.com/scripts/ip2c/ip2c.zip So, here we go (bingo): I hope you guys appreciate this one aleast . regards
Thanks for the good deed. Is there a working site that I can take a look into? nevermind, I will put this live for demo. [EDIT] demo is up: http://www.rsmaker.com/ip2host/Example1.php http://www.rsmaker.com/ip2host/Example2.php http://www.rsmaker.com/ip2host/Example3.php Seriously, for once I thought this is a script like the one found here HOST2IP I have been longing to have a script like that. So, this demo only valid for a few days. I will put it down soon. Just doing OP a favor.
As per suggestion of anther member azizny, I will put script together alongwith demo, but first they must be atleast 50. Besides I will put small demo after a while. regards
UPDATE Country FLAGS can also be displayed, Example added. Download:http://www.apitalk.com/scripts/ip2c/ regards
Ofcourse the function accepts the ip address. If you did not see examples yet The code was : Replace $_SERVER['REMOTE_ADDR'] with hard coded ip as regards
I meant that user enters the IP into a text box and the script outputs the country. Like dnsstuff ip tool
Well that will be fairly simple. I will post back example, but now am headed to bed. Please just send me a private message as reminder so that I don forget. regards
hi vooler thanks for the nice script can you also tell what other remote information we can extract. like CIty, ISP, other details etc. with these scripts. as in some sites I have seen they give city information , and even tell ISP who is your ISP.
Tech Entrance You did not send me reminder through, but these replies reminded me Here is the code you require. test.html <form method="post" action="myscript.php"> Enter Ip to look up <input type=text size=15 name="ip"> <input type=submit value="GO"> </form> HTML: myscript.php <? $info = get_ip_info(@$_POST['ip']); print $info['ip_country']; ?> PHP: I hope it helps. candychip Database is limited to country name, country code 2/3 characters. If I find such a database and/or a new mechanis I will implement and relase version 2, or may be we integrate it with interactive wordmap. regars
thanks! any idea on the accuracy of this database? will you keep the DB updated and release it on this forum?
Hello, I have found your thread through Google while searching for "IP To Country PHP". I have successfully installed your script; however, I have a question. Are you using the .csv database from ip-to-country.webhosting.info/ and is it possible to update it ourselves? I also have another question. Is it possible to make the country names without it all being capitalized? I'd prefer reading Canada instead of CANADA! Thank you, great release though! I have put up demos for the grand public: mafia-mp.com/Example1.php mafia-mp.com/Example2.php mafia-mp.com/Example3.php mafia-mp.com/Example4.php