Re: Save as a file

2004-12-15 Thread Jan Eden
Hi Lawrence, Lawrence Statton wrote on 15.12.2004: > > >Here's a trivial example to get you started > >#!/usr/bin/perl >use strict; >use warnings; > >use CGI; > >my $query = new CGI; > >print $query->header(-type => 'text/plain', > content_disposition => 'attachment; filenam

Save as a file

2004-12-15 Thread Jan Eden
Hi, I have some content stored within a database, which I want to be saved as a file on the user's system when requested. Currently, I generate a temporary file (timestamp_fileid.tex) and use a cron job to clean up the directory every 30 minutes: if ($texcontent) { my $texfile = texer(

Re: Save as a file

2004-12-15 Thread Lawrence Statton
> Hi, > > I have some content stored within a database, which I want to be saved as a f > ile on the user's system when requested. Currently, I generate a temporary fi > le (timestamp_fileid.tex) and use a cron job to clean up the directory every > 30 minutes: Using timestamp is a poor technique

Re: Save as a file

2004-12-15 Thread Jan Eden
Lawrence Statton wrote on 15.12.2004: >>Hi, >> >>I have some content stored within a database, which I want to be >>saved as a f ile on the user's system when requested. Currently, I >>generate a temporary fi le (timestamp_fileid.tex) and use a cron >>job to clean up the directory every 30 minutes