Re: Execute script then output image.
| From: | JJ Harrison | Date: | Thu, 11 Jul 2002 12:01:03 +0000 |
| Subject: | Re: Execute script then output image. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-107104@lists.php.net to get a copy of this message | ||
There was a much simpler way. It just said the location of the file.
I could use your method but the other one was much simpler.
--
JJ Harrison
webmaster@tececo.com
www.tececo.com
"David Otton" <david.otton@overnetdata.com> wrote in message
news:iasqiu4s2p6q4cobbldld4qhj2p6osvi0o@4ax.com...
> On Thu, 11 Jul 2002 21:00:36 +1000, you wrote:
>
> >How do I output a static image through a php script?
> >
> >it had something to do with headers but I can't remember exactly what.
>
> You need to output the correct content-type header for the image (eg
> image/gif), take it's size and output it as content-length, and
> suppress error reporting. Then output the image data.
>