[PHP] Re: Copying 1000s files and showing the progress
Am 2008-02-13 04:28:46, schrieb Ritesh Nadhani: > Now while the copy is going on at server, I want to show some progress > to the user at client side. Most of the tutorial I found on net was You can use a resized window (JS required) which automaticaly refresh all 2 seconds and show the status of the taring... Thanks, Greetings and nice Day Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: Copying 1000s files and showing the progress
Ritesh Nadhani wrote: Hello All I have a situation where I have to copy something like 1000 files one by one to a temporary folder. Tar it using the system tar command and let the user download the tar file. Now while the copy is going on at server, I want to show some progress to the user at client side. Most of the tutorial I found on net was about showing progress while a file is being uploaded from client to server. In this case the client has the info but for my case, the client has no info. A similar was problem was solved at http://menno.b10m.net/blog/blosxom/perl/cgi-upload-hook.html but its in PERL and uses some form of hook. I have no clue how to do it in PHP. Any clues or right direction would be awesome. Write a bash script on the fly to do the work, execute it using php, output the progress of the bash script back to the browser using output buffering.. just remember to pad the strings to buffer size and flush() so they actually get sent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php