How to create a php upload progress meter?

How to create a php upload progress meter?

This progess meter is based on the yahoo user interface library and alternative php cache (APC).  You will need both of these for it to display properly.  PHP 5.2.0 or higher is also required.

How it works

Once APC is installed and configured, the following needs to be added to your php.ini:

apc.rfc1867 = on

Aside from the Yahoo libraries, this is what makes the progress meter possible using php.

This is called the File Upload Progress hook handler and it is only available if you compiled APC against PHP 5.2.0 or later.  When enabled any file uploads which includes a field called 
APC_UPLOAD_PROGRESS before the file field in an upload form will cause APC to automatically create an upload_
user cache entry where is the value of the APC_UPLOAD_PROGRESS form entry.

Leave a Reply

You must be logged in to post a comment.


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.