Scratching my head a bit now with this.
I am trying to get a file from a remote url. I can save contents from local files, but can\'t from remote.
This works:
check the php settings...
it may be due to security issue... "allow_url_fopen = On"
http://www.php.net/manual/en/function.file-get-contents.php
Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/sites/mydomain/myfile.php on line 5`
This would suggest you are either using an incorrect url, or DNS is not correctly set up on your server.