samedi 25 juillet 2015

fopen - getting a failed to open stream error on an S3 url

So I'm getting:

Failed to open stream: HTTP request failed! HTTP/1.1 505 HTTP Version not supported

when I try to fopen an Amazon S3 stored file. Not entirely sure what I am doing wrong here.

I am using the following code:

$videoPath = s3_site_url("snippets/".$snippet_data->s3_file_name);
//Original URL: http://ift.tt/1IkMqKl

$handle = fopen($videoPath, "rb");




Aucun commentaire:

Enregistrer un commentaire