i've soughted out a solution with flash :)


except it adds the html output above the html do most browsers support this

"Richard Lynch" <[EMAIL PROTECTED]> wrote in message
> >hi there i have created a script to regenerate thumbnails for a photo
> >gallery , i have changed my code to use gd true color although it takes
> >forever now , i have it generating 20 at a time then doing the rest but
> >still takes forever , i know its impossible to generate a true progress
> >for image uploads via a browser but how about server side processes ?
> You can do something like this:
> <?php
>   for ($i = 0; $i < 20; $i++){
>     # Generate next TrueColor image:
>     echo ".";
>     flush();
>   }
> ?>
> And the user *should* see a single '.' appear as each image is completed.
> You need the flush() because Apache/HTTP buffers output until enough
> is there to make it worth sending.  flush() forces the data out the door.
> You'd probably really be better off just telling them that the thumbnails
> will be finished in about 5 minutes (or however long it takes) and letting
> them get on with life.  Who wants to sit there watching the dots go by?
> can set up a scheduled task to re-generate the thumbnails requested, and
> a database table to track requests.
> --
> Like Music?  http://l-i-e.com/artists.htm

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

Reply via email to