Hi there,
Got a deadline rapidly approaching and still banging my head against the wall - any help would be greatly appreciated!
Basically I'm developing a Flash application which gives the user the option to customise an ecard with a message, company name and company logo. I've got everything working apart from the logo part.
I need them to upload a logo, which is then resized and uniquely renamed, for when I pull it back in Flash.
I need to specify that neither the height or the width is greater than 75 px, and resize if it is - keeping everything in scale.
Here's the code so far:
I generate a unique variable name and use it create a new text file ($session)
$fd = fopen("$session.txt", "w");
fwrite($fd, "name=$name&message=$message&contentLoaded=true");
fclose($fd);
I then write all the text info into this - which all works perfectly.
I need to know how to let the user specify an image to upload, then once submitted I need to resize it so that neither the width nor the height is greater than 75px. We then need to save it as $session.jpg, so it has a unique name.
Please help guys - I'm pulling my hair out here!
Many, many thanks,
Matt