Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

140
Visualizações
How do deal with PHP timeout while downloading/zipping images from web

I've written a short script that takes a user uploaded .csv and downloads images from the web (column A), renames them by a barcode (column B), and then zips those images and downloads it for the user.

The script works fine if the .csv only has 10-100 rows, but the client is wanting to upload a .csv with 1000s of rows and we're now getting server timeout errors (as expected).

I set the max execution time to 0:

ini_set('max_execution_time', '0');

But that didn't do the trick.

The end goal is to simply download all the images and rename them by the barcodes. I thought about maybe splitting the task into multiple chunks of 100 images or so, but even then, I don't know how to get around a server timeout.

Does anyone have any suggestions or workarounds for a way to achieve something like this?

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda