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" <[EMAIL PROTECTED]>
To: "Richard Davey" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to