Jump to content

Archived

This topic is now archived and is closed to further replies.

jamiet757

Use PHP file to access images in Amazon S3 bucket

Recommended Posts

I am trying to configure my stock image site to use Amazon S3 to store the images.

 

I need to figure out how I can make a PHP file that will grab the imagewhen called, I would like to be able to do something like this:

 

<img src="/getimage.php?src=/content/folder/imagename.jpg">

 

This would make it easy to implement on my site, however I have no idea how I can make the PHP file that will grab the image.

 

I looked through the documentation on the API and it is way out of my league. Can anyone help me with something like this?

 

Here is a link to some of the docs, but I can't make sense of it all.

 

http://docs.amazonwebservices.com/AmazonS3/latest/gsg/

Share this post


Link to post
Share on other sites

Nevermind, I realized that I can just link directly to the image from the amazon site, and I learned how I can secure the files so people can't download them all.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.