Forum Home
Press F1
 
Thread ID: 82143 2007-08-17 01:24:00 PHP- Upload files -> resize them -> Zip them -> email them | How? Morgenmuffel (187) Press F1
Post ID Timestamp Content User
581836 2007-08-17 01:24:00 I have had a request for a form that takes a maximum of 2 files, one being an image the other being a document, resizes/resamples the image, and then Zips both files together and emails them

I have previously written upload scripts for files, but i have always processed and stored them on the server, and i can't see how to do it

The actual upload part isn't the issue. it's more a case of ....

Where do i store the processed file until i am ready to send it,
How do i Zip a file on a server and will the format be compatible with winzip

Once the email is sent i should be able to just unlink the files, or will they just be automatically deleted if I haven't saved them on the server?
Morgenmuffel (187)
581837 2007-08-17 03:45:00 Save them on the server, process them, then delete them. That would be the only way I know how to do it.

And yes, if you make it a zip file, pretty sure it would be compatible with winzip.
mejobloggs (264)
1