RE: [PHP] Re: progress bar for uploading files

2002-08-16 Thread Daniel Masson


I ... Had to do something like that recently .. Sending files through
ftp_put(); i just send the file .. And when user clicks 'Send' button
... A pop-up appears and gets the file size of the remote file and
comparing with de local size you can build a progress bar  This
pop-up uses the tag that Peter said HTTP-REFRESH so you can see how the
file size increases every n seconds ... It worked for me .. I hope this
can help !!

=> Daniel


This wouldn't work for uploading files however since the long part of
the process is the act of uploading the file and until that completes
your "save.php" (or whatever) isn't called.

So in regards to file uploading it has to be done with Javascript.  What
you do below is great for scripts that just take a long time though.

-philip

On Fri, 16 Aug 2002, Peter J. Schoenster wrote:

> On 16 Aug 2002 at 23:40, electroteque wrote:
>
> > hi guys i was wondering if there was anyway to have a progress bar 
> > for uploading images ?
>
> TMTOWDI, but here is a way I did something similar. I was spidering 
> remote sites and to get user's data and store in a database and the 
> user could not continue until the spider spun it's web.
>
> I accpeted the data I needed and then returned a page with the 
> HTTP-REFRESH tag in it with something like this
>
> http://yoursite.com/verify_upload?process_id=X&action=check_up
> load"&timer=X>
>
> So it refreshes every 10 seconds and checks to see if process X  has 
> finished, if so then redirect to the next step,  if not then just 
> return but upgrade the timer so you can increase your counter (perhaps

> a percentage in a table cell).
>
>
> Peter
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: progress bar for uploading files

2002-08-16 Thread Jay Blanchard

I had a rather weird thought, but it is Friday after all :^]

How about setting a small IFRAME in the upload diaog box? Then you could do
a couple of things;

a.) Place a small animated GIF in the IFRAME that moves left to right or
from side to side until the upload completes.

2.) Use the GD library and do something similar in the IFRAME.

Now, there are some issues such as calcing the time it takes to upload or
measuring the amount of the file upload and updating the IFRAME image
accordingly, and maybe some other little details that I am not thinking
about, but it just a weird little thought. I'd love to see some solutions
based on this though, and maybe when I get a little time next week I'll give
it a go.

HTH!

Jay

***
* Texas PHP Developers Conf  Spring 2003  *
* T Bar M Resort & Conference Center  *
* New Braunfels, Texas*
* San Antonio Area PHP Developers Group   *
* Interested? Contact [EMAIL PROTECTED] *
***

Rasmus, how much would it cost to get you or someone like you to come to
this? :^]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: progress bar for uploading files

2002-08-16 Thread Brian V Bonini

Bet this would be perfect for combining Flash and PHP.

> -Original Message-
> From: Philip Hallstrom [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 16, 2002 11:57 AM
> To: electroteque
> Cc: [EMAIL PROTECTED]
> Subject: [PHP] Re: progress bar for uploading files
>
>
> You're best bet would be to make an animated gif that looks like a progres
> bar (or twirling icon or whatever).
>
> Then when the users hits submit, "turn it on"... in the same way you do
> image rollovers, etc...
>
> Then it will spin until the form is submitted...
>
> On Fri, 16 Aug 2002, electroteque wrote:
>
> > hi guys i was wondering if there was anyway to have a progress bar for
> > uploading images ?
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php