UPDATE - Click here for a new (better) PHP Upload Progress Bar Script
If you're like me, you want a PHP upload progress meter that is actually useful in your web applications. All of the upload progress meters that I've run across only include the file upload field by itself, which is not realistic in an actual web application situation. You will most likely be entering other information along with uploading a file. The demo is an adaptation this php file upload progress meter.
The demo below will show you how to display a progress upload meter while also entering other information within the same form.
The progress meter will only show if you actually choose a file to upload. If you are just entering information in the text fields, then the progress meter will not show.
Single File Upload
Multiple File Uploads
YUI Code Library
You need this to display the progress meter bar. Look at demo source code for essential JS files.
You must have APC (Alternative PHP Cache) and PHP 5.2 installed on your server for any of this to work.
This is really the only potential problem for those who don't have root access to their server. It's not that difficult to install, but you either have to have root access, or your hosting provider will need to do this for you. The script will definitely not work without this.
Installing APC on your Linux server
Installing APC on your Windows server
Important: Make sure to include apc.rfc1867 = on in your php.ini file after APC is installed. Your php.ini file should be located in the /etc/ directory.
Upload Progress Meter by Rasmus Lerdorf
This is where the majority of my script came from. In my opinion, this is the best and cleanest php upload progress meter on the web.
· Mobile (1) · Projects (60) · Tutorials (14) · PHP (14) · jQuery (5) · MySQL (4)
View by date
· View All · March 2013 · February 2013 · October 2012 · September 2012 · August 2012 · July 2012 · May 2012 · March 2012 · February 2012 · January 2012 · December 2011 · November 2011 · October 2011 · September 2011 · July 2011 · June 2011 · May 2011 · April 2011 · March 2011 · February 2011 · January 2011 · December 2010 · November 2010 · October 2010 · September 2010 · July 2010 · May 2010 · April 2010 · February 2010 · January 2010 · November 2009 · August 2009 · July 2009 · May 2009