in reply to Filename in HTTP header?

As a matter of fact, the latest of my Web Techniques Perl columns talks about that very problem, and gives the nice solution.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
RE: (2) Filename in HTTP header? (Archive::Tar, future WT column)
by ybiC (Prior) on Aug 07, 2000 at 05:34 UTC
    "if adventurous use Archive::Tar and Compress::Zlib to generate compressed archive without external program. (Perhaps in a future column.)"

    If you do write that column, Merlyn, would you be so kind as to let the Monastery know? Or if this RE:(2) gets --, then s/let Monastery know/let ybiC know/   ;^)


        where's a personal drummer when you need one?
        ybiC

      I believe we would all benefit from merlyn's wisdom, so if he would be so kind as to write the column so we can all view it. merlyn, you are not JAPH.

      J. J. Horner
      Linux, Perl, Apache, Stronghold, Unix
      jhorner@knoxlug.org http://www.knoxlug.org/
      
RE: Re: Filename in HTTP header?
by Anonymous Monk on Aug 07, 2000 at 06:00 UTC
    Wow, thanks! I never expected to get such an answer :-)

    I didn't understand your code completely (I'm new to Perl) so I might be wrong about this but would the script run into trouble when more than one request is made in the same second (like when a user double clicks the submit button)?

    And how does the script keep old files away? I don't have that much diskspace so old files have to be removed like every hour or something ... maybe I'll run a check on the previous filenames when the script is run and remove any that are too old. (?)

    Anyway, thanks for your help, I really appreciate it becasuse this thing got me stuck for a few hours :-(

    Sorry for the bad spelling, English isn't my first language ... or my second ;-)

    Thanks,
    CBAS