PHP

Bulk images downloader

If you want to know how to bulk download images from a list of urls, you are in the right place :-).

Introduction

For donwload images with the code below, you need to have a table in a database (I used mysql notation) with the list of image url.

  • You should connect to database (not explained in the article);
  • extract an image’s URL;
  • download the image in a specific directory.

If for example you have a table with only 2 fields: image id (id), image url (url), will be very easy.

PHP Code

The code is self explained, the first part is for settings, then there is a loop between the image’s urls with save commands, at the end will be the result of the bulk downlad.

 

 

Leave a Comment