Closed mrjethva closed 6 years ago
Can you try to reupload your .BIN file and make sure it's under binary mode? It seems like your .BIN file is corrupted.
Yes, .BIN file is corrupted, I have downloaded a fresh DB9 BIN database. and uploaded again .BIN file on a server. After reupload I checked the script and it was started working fine.
I am getting below warning message. Due to these, I am not able to get CountryName, RegionName, CityName & Zip code. Even i am using DB9 BIN database.
Warning: unpack(): Type C: not enough input, need 1, have 0 in D:\Xampp\htdocs\IP2Location.php on line 1118 Warning: fread(): Length parameter must be greater than 0 in D:\Xampp\htdocs\iplocation\IP2Location.php on line 1049
I have placed the error screenshot in the attachment.