For security reasons you should be using cURL, most hosts prevent file_get_contents making http(s) requests