PHP Classes


Recommend this page to a friend!
  Classes of Pierre-Henry Soria   PHP 5.4 Session Upload Progress Bar   Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP 5.4 Session Upload Progress Bar
Track the progress of file uploads using sessions
Author: By
Last change: Update of
Date: 1 month ago
Size: 954 bytes


Class file image Download

PHP 5.4 - File Upload Progress Bar

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.

Example of the progress bar

Server Requirements

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.