bmhm has asked for the wisdom of the Perl Monks concerning the following question:

I have a page that a user (owner of that particular site) can backup their database. This creates a file in which all information will be stored. As the hosting company we do periodical backups, this feature is basically for those who love to backup their data religiously (24.7). The file that is created is then stored onto the server. I would like the file to be stored onto their computer instead.

I figure the easiest way would be to store the file on the server, have the script download the file to their computer and then delete the file off of the server. I have searched the archives and couldn't seemed to find what I was particularly looking for. So I ask you perl monks for a gentle shove in the right direction (a module to use, a thought, etc.).

bmhm

Replies are listed 'Best First'.
Re: Dowloading to a user
by grep (Monsignor) on Mar 25, 2002 at 02:46 UTC

    I would recommend just putting a link to the file and letting the user download by clicking the link or even redirecting the user to that link. You could delete the file a day or so later or have the user confirm a successful download before deleting.

    Else you will have to go to some kind of 'push' technology. 'Push' was a big thing a couple of years ago, but has pretty much died down (for several reasons including poor security). If you are interested you can check out this link about Push and Push Technologies on Netscape's site.



    grep
    grep> cd /pub
    grep> more beer