Possible Duplicate:
file_get_contents() returns “failed to open stream” when hitting HTTPS
how can i open https://~ urls with file_get_contents? it's possible to do?
i'm getting 'failed to open stream: No error in~
Possible Duplicate:
file_get_contents() returns “failed to open stream” when hitting HTTPS
how can i open https://~ urls with file_get_contents? it's possible to do?
i'm getting 'failed to open stream: No error in~
I believe it's easier to just use CURL, since you can do some more stuff with it
Really basic:
$ch = curl_init("https://url.to/secured.file");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$file = curl_exec($ch);