PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Amir   PHP Curl Multi File Download   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example script
Class: PHP Curl Multi File Download
Download several files simultaneously using Curl
Author: By
Last change: credits
Date: 7 years ago
Size: 535 bytes


Class file image Download

include "curld.class.php";

$data = array(
"url" => "", "saveas" => "1.jpg"),
"url" => "", "saveas" => "2.jpg"),
"url" => "", "saveas" => "3.jpg"),
// First variable includes urls and paths , second variable is the number of files that you want download simultaneously . If the number of files is more than this variable then class list them and download them in order .
curld::download($data, 3);