Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Apache2/mod_perl2システムが稼働しています。
GDを使用してその場で画像を作成し、次のように印刷しています。
$r->content_type('image/png'); binmode STDOUT; print $im->png;
しかし、これは物事を行うための正しい方法mod_perl2ですか?
mod_perl2
(私がその場で画像を生成していて、それをキャッシュしていないという事実を無視してください...)
mod_perl2では、に直接印刷しないでくださいSTDOUT。代わりに、
STDOUT
use Apache2::Const 'OK'; $r->content_type( 'image/png' ); $r->print( $im->png ); return OK;