PHP Classes

facing problem in getting country name using ip address

Recommend this page to a friend!

      Country From IP  >  All threads  >  facing problem in getting country...  >  (Un) Subscribe thread alerts  
Subject:facing problem in getting country...
Summary:Code not working
Messages:2
Author:Nitisha Chhatri
Date:2014-11-04 05:37:04
 

  1. facing problem in getting country...   Reply   Report abuse  
Picture of Nitisha Chhatri Nitisha Chhatri - 2014-11-04 05:37:04
Hello,

Please suggest me where I am wrong. In example.php I replaced the variable ip with my ip-address and it result into blank country name.

Also, I am not able to download flag.zip folder from the provided link in readme.txt file.

  2. Re: facing problem in getting country...   Reply   Report abuse  
Picture of Er. Rochak Chauhan Er. Rochak Chauhan - 2014-11-04 10:44:47 - In reply to message 1 from Nitisha Chhatri
I guess you have not combined all 5 files.

See you need to create one "CountryIPDatabase.txt" file which will contain the content of all five text file.

Simple Command is:


cat CountryIPDatabase1of5.txt CountryIPDatabase2of5.txt CountryIPDatabase3of5.txt CountryIPDatabase4of5.txt CountryIPDatabase5of5.txt > CountryIPDatabase.txt


Let me know if you still face any issue.