PHP School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a PHP Expert!

Join 300,471 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,745 people online right now. Registration is fast and FREE... Join Now!




Upload with uploading %

 

Upload with uploading %

nightscream

21 Jun, 2009 - 04:06 PM
Post #1

D.I.C Head
**

Joined: 4 Dec, 2008
Posts: 111



Thanked: 2 times
My Contributions
Hi

I don't really know where to post this but I have searched google, other forums, tutorial websites but I didn't find how to make an upload script showing the % of the upload.

I'm not looking for the code but maybe what language is needed to do this and maybe some pseudo code or whatever.
(I'm talking about something gmail has)

Thanks a lot!
Ward

User is offlineProfile CardPM
+Quote Post


AdaHacker

RE: Upload With Uploading %

21 Jun, 2009 - 07:03 PM
Post #2

D.I.C Regular
***

Joined: 17 Jun, 2008
Posts: 378



Thanked: 83 times
My Contributions
The easiest way is to just use a Flash object to do the uploading. I've had good luck with SWFUpload, but there are a bunch out there. Just Google around and I'm sure you'll find one that will do the job.
User is offlineProfile CardPM
+Quote Post

BetaWar

RE: Upload With Uploading %

21 Jun, 2009 - 07:08 PM
Post #3

#include <soul.h>
Group Icon

Joined: 7 Sep, 2006
Posts: 4,729



Thanked: 269 times
Dream Kudos: 1400
My Contributions
PHP 5 allows for Javascript to get the amount of the file that has been uploaded thus far, so you could potentially do a progress bar that way. I believe that is how google and others do it as you don't get any flash menu when you right click on the progress bars they provide.
User is offlineProfile CardPM
+Quote Post

jbhuffman

RE: Upload With Uploading %

21 Jun, 2009 - 08:29 PM
Post #4

New D.I.C Head
*

Joined: 21 Jun, 2009
Posts: 1

Yeah, PHP won't be able to do this as it is server side only. However, Javascript should work nicely for this.

QUOTE(BetaWar @ 21 Jun, 2009 - 07:08 PM) *

PHP 5 allows for Javascript to get the amount of the file that has been uploaded thus far, so you could potentially do a progress bar that way. I believe that is how google and others do it as you don't get any flash menu when you right click on the progress bars they provide.


User is offlineProfile CardPM
+Quote Post

nightscream

RE: Upload With Uploading %

22 Jun, 2009 - 05:17 AM
Post #5

D.I.C Head
**

Joined: 4 Dec, 2008
Posts: 111



Thanked: 2 times
My Contributions
so it's possible to do this with php and javascript or does this involve ajax?
User is offlineProfile CardPM
+Quote Post

nightscream

RE: Upload With Uploading %

30 Jun, 2009 - 01:30 AM
Post #6

D.I.C Head
**

Joined: 4 Dec, 2008
Posts: 111



Thanked: 2 times
My Contributions
someone?
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 02:50AM

Live PHP Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month