Thanks, I knew I didn't want to create or modify an image, so the html
seemed the only way to retrieve it...I guess I didn't know I could retrieve
a binary file in this manner.

-- P

----- Original Message -----
From: "Christian Reiniger" <[EMAIL PROTECTED]>
Subject: Re: [PHP] Script returns an image?


> On Wednesday 14 March 2001 16:04, you wrote:
> > I have been over that page, but did not know that it applied since I do
> > not want to modify an image, simply pass it on to the requestor.
> > Here;s my relevant code:
> >
> > <?php
> >
> > ...database stuff...
> >
> >     Header("Content-type: image/jpg");
>
> You tell the browser that you send an image...
>
> > ?>
> > <img src="image.jpg" width="100" height="50" alt="Description">
>
> and then send HTML code instead.
>
> do a <?php readfile ("image.jpg"); ?> instead of the <img> tag
>
>
> --
> Christian Reiniger
> LGDC Webmaster (http://sunsite.dk/lgdc/)


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to