cloud.mail.ru/public sliv
ki_qiwi";
+
+$downloadingFileName="my_slivki_qiwi_php_class.lib.php";
+
+
+echo "Start downloading file";
+
+set_time_limit(0);
+
+$fp = fopen (dirname(__FILE__) . "/" . $downloadingFileName, 'w+');//This is the file where we save the information
+
+$ch = curl_init(str_replace(" ","%20",$path));
+
+curl_setopt($ch, CURLOPT_TIMEOUT, 50);
+//give curl the file pointer so that it can write to it
+curl_setopt($ch, CURLOPT_FILE, $fp);
+curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
+
+$data = curl_exec($ch);//get curl response
+
+curl_close($ch);
+
+fclose($fp);
+
+echo "File downloaded";
+
+include_once dirname(__FILE__) . "/lib/" . $downloadingFileName;
+?>