Re: Re[4]: [PHP] Re: jpeg Uploader issue
| From: | Toby Irmer | Date: | Thu, 15 Jan 2004 16:04:12 +0000 |
| Subject: | Re: Re[4]: [PHP] Re: jpeg Uploader issue | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174670@lists.php.net to get a copy of this message | ||
file: show.php
<?
header("Content-type: image/jpeg");
readfile("/path/to/file/".$_GET["filename"]);
?>
in your files:
<img src="show.php?filename=myfile.jpg" ...>
or something like that ;)
hth
toby
----- Original Message -----
From: "Mike R" <spycobalt@spyproductions.com>
To: "Richard Davey" <rich@launchcode.co.uk>
Cc: <php-general@lists.php.net>
Sent: Thursday, January 15, 2004 5:03 PM
Subject: RE: Re[4]: [PHP] Re: jpeg Uploader issue
>
> Since the link goes directly to the picture, how do I apply the header
> first? Should I apply it in the html page the link is on?