0

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~

Community
  • 1
  • 1

1 Answers1

0

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);
Sander
  • 1,402
  • 2
  • 21
  • 44