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
 

Contents

Class file image Download
<?php

include "curld.class.php";

$data = array(
    array(
"url" => "http://s9.uploads.im/uxqIn.jpg", "saveas" => "1.jpg"),
    array(
"url" => "http://s9.uploads.im/uxqIn.jpg", "saveas" => "2.jpg"),
    array(
"url" => "http://s9.uploads.im/uxqIn.jpg", "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);

?>