fliptop wrote:
my $filename = $cgi->param('filename');
my $mime_type = $cgi->param('mime_type');
print $cgi->header($mime_type);
open OUT, $filename;
my $buffer;
while (my $read = read(OUT, $buffer, 4096)) {
print $buffer;
}
close OUT;
You're right, when your script deals with parameters, URL-e
hi...
I'm working on a CGI program that creates some user-specific file on the
server when accessed. is there a good way to make sure theese files are
cleared when they're no longer needed - IE if a file in a specific
directory was not accessed for 5 minutes, delete it.
Right now i'm thinking a
On Wed, 27 Aug 2003 16:18:00 +0200, Shahar Evron <[EMAIL PROTECTED]> wrote:
> hi...
> I'm working on a CGI program that creates some user-specific file on the
> server when accessed. is there a good way to make sure theese files are
> cleared whe
Correct me if i'm wrong, you say use cron and a shell script (let's say bash) instead
of perl?
well, if there are any other ways of doing it instead of using cron, id love to head
about it.
Is there a way to know when a user leaves the site? if so can i make it run the
clearing script when a us
On Wed, 27 Aug 2003 10:28:46 -0400, [EMAIL PROTECTED] wrote:
> Correct me if i'm wrong, you say use cron and a shell script (let's say bash)
> instead of perl?
> well, if there are any other ways of doing it instead of using cron, id love to head
On Wednesday, Aug 27, 2003, at 07:18 US/Pacific, Shahar Evron wrote:
[..]
I'm working on a CGI program that creates some user-specific
file on the server when accessed. is there a good way to make
sure theese files are cleared when they're no longer needed -
IE if a file in a specific directory was
Or if you don't want to depend on Unix's cron and want your program to do
everything, you can set it so each time a new visitor comes to your site,
checks which files are not needed, and delete them.
You can use fork to avoid putting the visitors to wait until the program is
doing its background jo