file_get_contents only works on external URLS if the fopen_wrapper have been enabled in the PHP.ini. Most the shared hosting I've come across have this disabled, so it would show an error.
cURL is the functions you need to 'get' a URL, not file_get_contents.