Questions tagged [aws-php-sdk]

Amazon Web Services SDK for PHP

The AWS SDK for PHP enables PHP developers to easily work with Amazon Web Services and build scalable solutions with Amazon S3, Amazon DynamoDB, Amazon Glacier, and more.

Download Link

User Guide

API Documentation

314 questions
0
votes
1 answer

$s3->getObject returns private class (can't access properties)

I'm trying to wirte a function which is downloading content from my S3 bucket. The main problem I have is that, $s3->getObject returns class with private properties. I'm using "aws/aws-sdk-php": "^3.54" via composer and this are my methods. My main…
Valor_
  • 3,461
  • 9
  • 60
  • 109
0
votes
0 answers

Aws-sdk-php putobject with ffmpeg .m3u8 & .ts format

I can't send hls video. aws-sdk-php mp4 video working well but hls videos only send .m3u8 file all .ts file come in local storage Here my actual code. Submit-ffmpeg.php: $ffmpeg_b = $pt->config->ffmpeg_binary_file; $filepath = explode('.',…
0
votes
1 answer

AWS S3 PHP SDK presigned url restrict content type

I am trying to make a PutObject presigned request using the AWS S3 PHP SDK. I have gotten the request to work but now I only want to allow my users to be able to only upload video files.I have tried a lot of combinations and searched a lot but I…
Raress96
  • 214
  • 3
  • 7
0
votes
1 answer

AWS S3 Internal Server Error: Tyring to upload pdf file on after another

I'm trying to generate PDF file using FPDF and PHP and later upload to AWS-s3 and generate the url. When I executed the below code in my local-machine Using XAMPP it's generating files and uploading it to S3. But When I deployed in AWS server as an…
0
votes
1 answer

Installing Composer on Bluehost VPS

I am somewhat new to all this so maybe this is a simple question. I am trying to install Composer and have read through all the documentation to the best of my understanding. I have installed composer through bluehost's system console. Received the…
BL10s
  • 43
  • 7
0
votes
1 answer

How to send messages using AWS Pinpoint service using PHP SDK

Hi I am trying to send a message using AWS Pinpoint with the PHP SDK, but I am getting an error. Any ideas why? Here is my code: $client = new PinpointClient([ 'version' => 'latest', 'region' => 'us-east-1', …
awavi
  • 837
  • 3
  • 11
  • 23
0
votes
1 answer

Pagination in FOREACH loop with OBJECTS from WPS APK

I wrote this code that works pretty well, it retrieves files from nested folder in s3 bucket that change on signed in user changes, provides images from jpg in nested folder using the root folder to create a DIV, and print out infos taken from a…
Raffobaffo
  • 2,806
  • 9
  • 22
0
votes
1 answer

Set ACL to private on all the files in a folder

For the testing purpose I have uploaded 'n'- number of files to a folder in the s3 bucket as "any aws user" ACL. Now I want to change ACL to "private" for all the files in that folder. I find that it can be done more easily by a third-party tool…
Rosa Mystica
  • 243
  • 1
  • 3
  • 17
0
votes
3 answers

aws-php-sdk: Is it possible to search or compare face using php

I have uploaded images using php on S3, now i want to compare/match given image in my S3 collection, I googled but not getting answer, if it is possible to use AWS face rekognition using PHP to search in S3 collection.
0
votes
0 answers

How to know from aws-php-sdk if an Object inside my S3 bucket is visible to everyone (is set as public)?

I own a S3 bucket, which has two objects inside: testPublic.jpg , which is public (everyone, given the URL, can access it) testNotPublic.jpg , which is not set as public. I need a method that can tell me if the file in question is visible by…
estcap
  • 1
  • 1
0
votes
1 answer

Paginating List Cognito Identities in AWS PHP SDK v3

How do I fetch all records when the result is paginated, using the AWS PHP SDK v3? I have the following code: require_once 'vendor/autoload.php'; $cognitoIdentityClient = new Aws\CognitoIdentity\CognitoIdentityClient([ 'region' => 'eu-west-1', …
PeterB
  • 2,212
  • 2
  • 21
  • 33
0
votes
0 answers

Aws get entitlement issue host not resolved

I have issue with aws php sdk that the getentitlments has host not resolve AWS HTTP error: cURL error 6: Could not resolve host: entitlement.marketplace.us-east-2.amazonaws.com (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)'
Puneet
  • 5
  • 6
0
votes
1 answer

AWS EC2 Spot request fulfillment waiter from PHP SDK waits indefinitely

I'm trying to get through the eventual consistency of a spot instance so I can assign it within my application. Here's what I've seen, from a fairly simple spot instance call. The instance requested is immediately started (fast 15-30 second instance…
0
votes
1 answer

How to securely use Amazon S3 in a messaging application

So I'm building a messaging app in Cordova and I was wondering what the best approach is to secure the image files so no one else can view them. I suppose I can just generate random filenames and store them in the database, but that feels like…
D-Marc
  • 2,937
  • 5
  • 20
  • 28
0
votes
1 answer

Installation set up of dynamoDb in PHP

I have downloaded Libraries from Aws server to install in my server. I downloaded library from Link - href="http://docs.aws.amazon.com/aws-sdk-php/v3/download/aws.zip". I want to know how to work this library as using PHP. I have read the document…