in reply to Zip file extraction (perhaps a little OT)

The directory of a .zip file comes at the very end of the file, so you will have to wait with processing it until the file has been received completely, at least if you want to use the standard tools for zip files.

For your other question, see merlyn's Watching long processes through CGI.

Replies are listed 'Best First'.
Re^2: Zip file extraction (perhaps a little OT)
by polettix (Vicar) on Sep 05, 2007 at 14:53 UTC
    As I understood OP's question, in this case the "long process" is the upload itself, so I don't know if merlyn's column is applicable here. On the other hand, I remember that Apache times out only upon idle conditions, so a very long upload (where data continues to pipe in) should not be a problem.

    Flavio
    perl -ple'$_=reverse' <<<ti.xittelop@oivalf

    Don't fool yourself.
      I might be wrong but I don't think that's the case. I once wrote a bot that scraped a page and submitted a dynamic form 10 times per search query for sometimes hundreds of searches/page scrapes from a slow server.. and it often gave up after a few minutes. I also created a link popularity script to parse engines and that occassionally timed out as well.

      In reality I need to find a way to break up the uploaded zip archive and upload for X minutes (or X MB, or X files), load a page and meta refresh, and then start where I left off.