Update urls used in examples

This commit is contained in:
Zach Borboa
2021-04-03 09:24:19 -04:00
parent 22eb9340e6
commit feca86813d
9 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ $curl->progress(function ($client, $download_size, $downloaded, $upload_size, $u
return;
}
// Display a progress bar: xxx% [=======> ]
// Display a progress bar: xxx% [=======> ]
$progress_size = 40;
$fraction_downloaded = $downloaded / $download_size;
$dots = round($fraction_downloaded * $progress_size);
@@ -29,4 +29,4 @@ $curl->progress(function ($client, $download_size, $downloaded, $upload_size, $u
$curl->complete(function ($instance) {
echo "\n" . 'download complete' . "\n";
});
$curl->download('https://secure.php.net/distributions/manual/php_manual_en.html.gz', '/tmp/php_manual_en.html.gz');
$curl->download('https://www.php.net/distributions/manual/php_manual_en.html.gz', '/tmp/php_manual_en.html.gz');