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
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.
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
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 download
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 snippets
]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 4:40 PM
Subject: [PHP] imagejpeg and downloading images
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
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 4:40 PM
Subject: [PHP] imagejpeg and downloading images
Hi All,
I'm using the following code to try to download images automatically
from
a
directory:
header('Content-Type: image/jpeg');
$im
7 matches
Mail list logo