I am using an api of a SNS website, which is uploading an image. This api has a parameter "photo=photo_file_content", and is basing on RFC 1867.
Now I have the url of a certain image, but I don't kwon how to fetch the image, I've used $param['photo'] = file_get_contents($pic_path);
, but it didnt' work.
So what's the proper way to get the image? Thanks.