So I'm trying to read from a remote file (which used to work) and it stopped working after transferring servers. The code looks like this:
$import_handle = fopen("http://www.example.com/path/", "r");
This is the error I'm getting (from error_get_last()):
fopen(http://www.example.com/path/): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
I can confirm that example.com/path is working. What's the cause of the error and what am I missing?
Thanks for any help.