Created
March 29, 2012 14:07
-
-
Save millsy/2237776 to your computer and use it in GitHub Desktop.
amazon s3 php get url of file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'sdk.class.php'; | |
$s3 = new AmazonS3(); | |
$s3url = $s3->get_object_url('mybucket', 'mypath/tofile.txt', '5 minutes'); | |
echo $s3url; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment