This is an example how to create a progress bar using PHP 5.4 to calculate the progress of a file being downloaded.
I also used the jQuery framework to query AJAX to know the percentage of the progress in real time.
Finally, if you want more info concerning this PHP feature, you can visit the official PHP website or check my French ebook here.
PHP 5.4.0 or higher.
Pierre-Henry Soria
By email at: pierrehenrysoria {{AT}} gmail {{D0T}} com or at: ph7software {{AT}} gmail {{D0T}} com
This source code is under the license Creative Commons Attribution 3.0 or later; See the LICENSE.txt file.