Skip to content

Instantly share code, notes, and snippets.

@Leandro-Reis
Leandro-Reis / curl_progress.php
Created July 28, 2022 01:40 — forked from stuudmuffin/curl_progress.php
PHP/cURL download progress monitoring
<?php
//If output buffer flushing does not work, web-search for reasons your php/webserver setup may need to be adjusted
header('X-Accel-Buffering: no');
if (ob_get_level() == 0) ob_start();
//create javascript progress bar
echo "<html>
<head>
<script type='text/javascript'>
function updateProgress(perc) {