Skip to content

Instantly share code, notes, and snippets.

@stuudmuffin
stuudmuffin / curl_progress.php
Last active May 11, 2024 20:21 — forked from bdunogier/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) {