pankaj_it09 has asked for the wisdom of the Perl Monks concerning the following question:
sub searchFile { my $query = shift; my $filename = $query->param('filename'); my $conid = $query->param('conid'); my $datetime = $query->param('datetime'); my $oldfile=$filename; my ($date,$time) = split(/ /,$datetime); $filename="/tmp/$conid$date$time$filename"; $filename =~ s/[:-]//g; print $query->header(-type=> "application/octet-stream",-attachmen +t=>"$oldfile"); open(NEWFILE,"<$filename") or die "Couldn't open file '$filename': + $!"; binmode(NEWFILE); binmode STDOUT; print <NEWFILE>; close(NEWFILE); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: PDF file opening from Linux but not opening from Windows
by almut (Canon) on Nov 24, 2006 at 14:06 UTC | |
by pankaj_it09 (Scribe) on Nov 27, 2006 at 09:07 UTC | |
by Anonymous Monk on Nov 25, 2006 at 05:54 UTC | |
by pankaj_it09 (Scribe) on Nov 25, 2006 at 05:57 UTC | |
|
Re: PDF file opening from Linux but not opening from Windows
by fenLisesi (Priest) on Nov 24, 2006 at 12:53 UTC | |
by pankaj_it09 (Scribe) on Nov 27, 2006 at 10:11 UTC |