Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

367
Views
¿Es posible obtener objetos del depósito S3 y usar directamente los resultados en un comando de shell como cadena?

Estoy usando el repositorio SDK oficial de PHP para AWS https://github.com/aws/aws-sdk-php

Todo funciona bien, pero me gustaría saber si puedo acceder a mis objetos directamente, me gustaría usarlo de esta manera:

 require './start.php'; $bucket = 'cdn'; $query = $this->db->query("SELECT 'art' FROM ..."); while($row = $query->fetch_assoc()) { $rows[] = $row; } foreach($rows as $row) { $result = $s3->getObject(array( 'Bucket' => $bucket, 'Key' => 'uploads/media'. '/' .$row['art'] )); } shell_exec('montage '.$result.' /var/www/html/out.jpg');

Entonces, básicamente, la consulta selecciona algunas imágenes, las obtiene de S3, y esas imágenes se ensamblan junto con Image Magick en un solo JPEG (out.jpg).

¿Es posible o simplemente lo hice mal?

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!