Thanks to everyone for their help.
The code below worked great! Thanks,
Doug Coning
- Original Message -
From: "adrian [EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: "Doug Coning" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, March 11, 2003
try changing headers sent e.g
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=001_SM77GR.jpg");
$im = imagecreatefromjpeg("001_SM77GR.jpg");
imagejpeg($im,'',85);
imagedestroy($im);
- Original Message -
From: "Doug Coning" <[EMAIL PROTE
At 17:47 11.03.2003, James Holden said:
[snip]
>READ the manual.
>
>The snippet is correct but if you want to take advantage of the saving
>features of this function follow the function information at the top of
>the page. Jumping straight to the user snip
At 17:40 11.03.2003, Doug Coning said:
[snip]
>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 do
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
> di
READ the manual.
The snippet is correct but if you want to take advantage of the saving
features of this function follow the function information at the top of
the page. Jumping straight to the user snippets is a mistake as they
are user contributed and may not document the whole function.
in
6 matches
Mail list logo