chrislim2888 / IP2Location-PHP-Module

This module is a PHP module that enables the user to find the country, region, city, coordinates, zip code, ISP, domain name, timezone, connection speed, IDD code, area code, weather station code, weather station name, mobile, usage types, address type, IAB category, etc that any IP address or host name originates from.
https://www.ip2location.com
MIT License
197 stars 69 forks source link

unpack(): Type V: not enough input, need 4, have 0 #27

Closed dani821 closed 4 years ago

dani821 commented 4 years ago

Message: unpack(): Type V: not enough input, need 4, have 0 Line: 1561 File: \vendor\ip2location\ip2location-php\IP2Location.php

Bin = IP2LOCATION.BIN

package Version: 8.*

ip2location commented 4 years ago

Can you make sure you have download the latest BIN database? It seems like your BIN file is corrupted.

dani821 commented 4 years ago

which bin should I download? IPV4 or IP6?

ip2location commented 4 years ago

It depends on your demand. If you are not using IPv6, download the IPv4 BIN will do.