Progress Bar

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jonra
Forum Newbie
Posts: 22
Joined: Thu May 25, 2006 9:35 am
Location: Iowa
Contact:

Progress Bar

Post by jonra »

I have a small application written in PHP that creates podcasts on the fly and allows users to upload files for their podcast. So, I've rolled it out in beta at this point, and people are playing around with it at the office and so far results have been great - they seem to love the thing. However, one major complaint is the lack of a progress bar while the file is uploading. I've had some users hit the submit button twice on large files because they didn't know if it was working or had frozen the browser, and some have just closed the window out - which completely ruins my algorithm because it's tough to say where in the process they were at (Writing the XML, updating the DB, uploading the file, etc).

So what I'm looking for is a way to implement a progress bar that will be PHP friendly. I've looked into some AJAX widgets and the like, but none of them seem to fit a straight PHP model - a few I've found in google searching have been Ruby-on-Rails implementations and I can't exactly go that route. On top of that, I'm terrible at JavaScript so writing something from scratch will be a difficult task for me.

Any ideas?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Have a look into output buffering.. my memory is shady but I've seen some pretty cool implementations of OB progress bars.
Post Reply