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
>
> <meta http-equiv="Refresh" content="10; 
>URL=http://yoursite.com/verify_upload?process_id=X&amp;action=check_upload"&amp;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

Reply via email to