Whenever I try to capture the contents of a page using file_get_contents()
and there is a Unicode character in the domain, I get the following:
file_get_contents ( https: //møller.dk/ ): failed to open stream: php_network_getaddresses: getaddrinfo failed: Service name not known in> FILE LOCATION <
This only happens when I have a Unicode character in a domain. Here is an example:
file_get_contents("http://møller.dk/");
source share