my $subr = $r->lookup_file($file); return 404 unless -f $file and $subr->status == 200; $r->content_type("application/download"); $r->header_out('Content-disposition' => "attachment; filename=\"$fil +e\""); $r->send_http_header; return 200 if $r->header_only; $subr->run; $m->abort;
In reply to Re: Printing to a Variable
by dreadpiratepeter
in thread Printing to a Variable
by Dr. Mu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |