|
|
 |
Re: FN-FORUM: PHP Image Upload script wanted
date posted 17th January 2004 18:49
----- Original Message -----
From: "Tony Crockford" [EMAIL REMOVED]
Sent: Saturday, January 17, 2004 4:50 PM
Subject: FN-FORUM: PHP Image Upload script wanted
> upload a jpg
> create a thumbnail
> rename both images according to script generated criteria
> move both images to different directories.
>
Easy to do... check out the bottom of http://easypichost.com ... probably
does exactly what you need ... but the code isn't all in one place to do
that... so if there's something specific I can help
Just copy the upload code form the PHP example ... move_uploaded_file is the
function you want....
then use imagecreate, imagecopy and imagejpeg etc to make the thumbnail
moving the files is then a matter of copying then 'unlink'ing
Job done.
Andy.
|
 |
|