Are you sure your file_get_contents is working.
Please use cURL most systems block file_get_contents being able to make HTTP/S requests. So please use cURL and retry. You should also be testing to see if you get a HTTP 200 when you make a request to the channel.
Furthermore make sure that $name is in lowercase.