PHP Curl progress bar (callback returning percentage)
Posted
by
WarDoGG
on Stack Overflow
See other posts from Stack Overflow
or by WarDoGG
Published on 2011-01-16T14:36:50Z
Indexed on
2011/01/16
14:53 UTC
Read the original article
Hit count: 162
I have implemented the curl progress bar using
curl_setopt($curl, CURLOPT_PROGRESSFUNCTION, 'callback');
curl_setopt($curl, CURLOPT_BUFFERSIZE,64000);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
and a callback function.
problem is, the script is outputting the percentage on my html everytime like this :
0
0.1
0.2
0.2
0.3
0.4
..
..
..
1
1.1
How do i combine this with CSS to show a changing progress bar ?
© Stack Overflow or respective owner