mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-23 21:49:32 +00:00
Add download file with redirection example
This commit is contained in:
@@ -12,4 +12,4 @@ $curl->progress(function ($client, $download_size, $downloaded, $upload_size, $u
|
||||
$percent = floor($downloaded * 100 / $download_size);
|
||||
echo ' ' . $percent . '%' . "\r";
|
||||
});
|
||||
$curl->download('https://php.net/distributions/manual/php_manual_en.html.gz', '/tmp/php_manual_en.html.gz');
|
||||
$curl->download('https://secure.php.net/distributions/manual/php_manual_en.html.gz', '/tmp/php_manual_en.html.gz');
|
||||
|
||||
Reference in New Issue
Block a user