To expand on ++robartes very correct suggestion. To pull a progress bar from this you will need to know a few other things.
What method you're using to display a progress bar is beyond the scope of this document (YES! I have been dying to use that in a sentence). Ahem. Let us presume you use 1024 byte hashmarks and count the hashes as they are printed. You must then normalise the progress in bytes ($num_of_hashes * 1024) , with your $total_dl_size like
$normalised_progress = ( ($num_of_hashes * 1024) / $total_dl_size );
$normalised_progress will be a value from 0 to 1 where 1 indicates a completed download. In reality you will need to limit this because of the inprecision(sp.) introduced by hashmarking in blocks of 1024 bytes. Oh yes, and be aware that the above code is not divide.by.zero safe!!
In reply to Re: FTP downloading progress bar
by submersible_toaster
in thread FTP downloading progress bar
by donno20
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |