(PHP) Warning: file_get_contents() [function.file-get-contents]: couldn’t resolve host name

The URL you have used is wrong:


should be:


Next time debugging something like this. Try to see what the piece of code is doing and try it out manually, so in this case simply going to this url in the browser would give you some information.

Leave a Comment