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");
?>
<img src="image.jpg" width="100" height="50" alt="Description">
Do I need to use something more like:
<?php
...database stuff...
Header("Content-type: image/jpg");
$im = imageCreateFromJpg("image.jpg");
ImageJpg($im);
ImageDestroy($im);
?>
----- Original Message -----
From: "Yasuo Ohgaki" <[EMAIL PROTECTED]>
Subject: Re: [PHP] Script returns an image?
> Did you read this page?
> http://www.php.net/manual/en/features.images.php
>
> What is your php code looks like? if you read this page already.
>
> Yasuo Ohgaki
>
> ----- Original Message -----
> From: "Paul Warner" <[EMAIL PROTECTED]>
> Subject: [PHP] Script returns an image?
>
>
> > I am trying to make a call from one page (pure HTML) that would include
a
> > tag as follows:
> >
> > <img src=http://mydomain.com/returnimage.php?var1=value1&var2=value2
> > width="100" height="50" alt="Description">
> >
> > My question is how to get the php script to return the proper headers as
> > well as the image to the client. This will be used for tracking when
> > certain copyrighted images (actually blueprints) are accessed, and by
whom
> > by making some db entries when called, then returning the image. The
image
> > is static and is not dynamically generated based on any of the values in
the
> > uri. So far all I get are broken images. I'm guessing that it has to
do
> > with the headers...
> >
> > -- P
--
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]