in reply to Download, don't redirect.

I see what you are doing ... not giving away information about the root directory, etc. details of your webserver.

Also a small point ... two actually: I never use die if possible in CGI scripts - I prefer to use the carp module or or some other technique. When opening files, that may be accessed by multiple web server processes launching a perl script, I flock() the file for safety.

Regards, Marburg (john.keating@may.ie)

Replies are listed 'Best First'.
RE: RE: Download, don't redirect.
by BBQ (Curate) on Apr 29, 2000 at 01:05 UTC
    As a matter of fact, I have no idea of why I put die() instead of return(0)... The way I call this sub is by saying
    FileDownload('/myfiles','ball.tar.gz') or Errors('Could not start download.');
    so your comment on die() makes perfect sense...

    thanks!