That code works for me:
Is file_get_contents returning anything? Many times hosting providers disable remote URLs for this function for security. Personally I’d recommend looking into using cURL for that purpose.