|
Posted by Rik Wasmus on 10/26/07 14:38
On Fri, 26 Oct 2007 16:31:44 +0200, Good Man <heyho@letsgo.com> wrote:
> "C. (http://symcbean.blogspot.com/)" <colin.mckinnon@gmail.com> wrote =
in
> news:1193403723.633067.95850@o3g2000hsb.googlegroups.com:
>
>
>> 2) set the content type for the browser to use in a header(...) call
>> in your PHP
>
> that is absolutely the way to go. don't mess with apache at all, use
>
> <img src=3D"imageDisplay.php?key=3D39478197">
>
> and have imageDisplay.php use:
>
> header("Content-type: image/png");
> $im =3D imagecreatefrompng("test.png");
> imagepng($im);
Hmm, that would be unneccessary. Unless you plan to alter the picture, =
just do a header & a readfile('test.png'); Tremendously saves memory usa=
ge.
-- =
Rik Wasmus
Navigation:
[Reply to this message]
|