Upload 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

mikegotnaild
Forum Contributor
Posts: 173
Joined: Sat Feb 14, 2004 5:59 pm

Upload progress bar?

Post by mikegotnaild »

Does anyone know where i could get a free one thats easy to plug into my uploads? Hopefully this isnt considered off-topic.
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

http://www.hotscripts.com did you try that ?

Google:Upload progress bar script java / perl ..............
User avatar
xisle
Forum Contributor
Posts: 249
Joined: Wed Jun 25, 2003 1:53 pm

Post by xisle »

here's a java script clock that I posted previously...

viewtopic.php?p=84450&highlight=#84450
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

hmm... what does a clock have anything to do with a progress bar??
User avatar
xisle
Forum Contributor
Posts: 249
Joined: Wed Jun 25, 2003 1:53 pm

Post by xisle »

times the progress in seconds, I hate progress bars :LOL:
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

googled for php upload progress bar, first result
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

xisle wrote:times the progress in seconds, I hate progress bars :LOL:
no matter your likes and dislikes, its not what he asked for.
mikegotnaild
Forum Contributor
Posts: 173
Joined: Sat Feb 14, 2004 5:59 pm

Post by mikegotnaild »

:) no worries. Thanks
User avatar
xisle
Forum Contributor
Posts: 249
Joined: Wed Jun 25, 2003 1:53 pm

Post by xisle »

waaaaaaaaaah! :cry:
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

dont take illusionist too serious... hes not trying to be mean he is just stating the obvious.

a baby cry wont get you very far though, i'll tell you that lol

however for some odd reason, i am now thirsty for some milk.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

Ya, I don't know if you can make a progress bar that shows percentage uploaded, but you can certainly make a progress bar that just keeps moving as long as the upload is going.

While I've never done this per se, I know you can turn off buffered output - so you can keep output coming in real time. That's the first step. I'm also pretty sure you can check file size (I can't imagine why not). So, you could check the file size, and if it's changed from the last time, grow the bar.

What I'm thinking will probably require another window to show the status, as well as some javascript to reload said window.

I'm making this up as I go so if it doesn't make sense, just let me know.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

Progress bars can only be made with;

java
perl
flash

Python i do not know.
mikegotnaild
Forum Contributor
Posts: 173
Joined: Sat Feb 14, 2004 5:59 pm

Post by mikegotnaild »

Well basically i just want something that is showing that their upload is actually doing something.. And indicates when its done
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

Look at the link i posted and click on the right side where it says Demo, it is almost exactly like what pickle was saying.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

Illusionist wrote: it is almost exactly like what pickle was saying.
Ya sorry, didn't mean to be redundant.
Post Reply