Trying to get information from an external source, I\'m receiving the following error:
Warning: php_network_getaddresses: getaddrinfo
Although I didn't use this exact function I got this same error.
In my case I just had to remove the protocol.
Instead of $uri = "http://api.hostip.info/?ip=$ip&position=true";
$uri = "http://api.hostip.info/?ip=$ip&position=true";
Use $uri = "api.hostip.info/?ip=$ip&position=true";
$uri = "api.hostip.info/?ip=$ip&position=true";
And it worked fine afterwards