try using (i think) a content-disposition:attachement header

i am not in front of my machine so that will just have to be a rough guide,
sorry

On Tue, Mar 11, 2003 at 10:40:33 -0600, Doug Coning wrote:
> Hi All,
> 
> I'm using the following code to try to download images automatically from a
> directory:
> 
> header('Content-Type: image/jpeg');
> $im = imagecreatefromjpeg("001_SM77GR.jpg");
> imagejpeg($im,'',85);
> imagedestroy($im);
> 
> I copied this code from PHP.net.  However, when I run the above code, it
> doesn't download the image, it just shows the image in the browser.  I'm
> using IE 6 for my browser.
> 
> How I get PHP to download this image?
> 
> Thanks!
> 
> Doug Coning
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
Mat Harris                      OpenGPG Public Key ID: C37D57D9
[EMAIL PROTECTED]       www.genestate.com       

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

Reply via email to