Thread Net::MySQL versus Apache::DBI - Performance? (11 answers)
Opened by Airport1 at 2005-07-10 19:49

Airport1
 2005-07-12 15:13
#31125 #31125
User since
2005-07-10
24 Artikel
BenutzerIn
[Homepage] [default_avatar]
Fuer die Nachwelt: um das "chunked" abzustellen habe ich es nun so geloest:

my $fname = '/pfad/datei.gif';
my $flen = (-s $fname);

open(IMAGE, '<'.$fname);

$r->headers_out->set('Content-Length', $flen);
$r->print(<IMAGE>);
close(IMAGE);
return OK;

Bleibt nur die Frage ob ein $content_length = (stat (FILEHANDLE))[7]; schneller waere ;)

View full thread Net::MySQL versus Apache::DBI - Performance?