If I create a file (say ASCII text) from user input using PHP, is there a way PHP can
1) convert this to a ZIP file
2) make the ZIP file an attachment to a reply e-mail?
Any advice would be appreciated.
Regards
Peter
Printable View
If I create a file (say ASCII text) from user input using PHP, is there a way PHP can
1) convert this to a ZIP file
2) make the ZIP file an attachment to a reply e-mail?
Any advice would be appreciated.
Regards
Peter
The only way PHP can manipulate ZIP files is through read-only operations. So inherently, there's no way to do it.
But it be possible to write some extensive compression code to create the zip file, then just save it to the tmp folder, after which it can be attached to an e-mail.
Someone probably has already done this. I'd suggest searching the web and sites like www.phpbuilder.com for code.
use system command for start zip program
Sincerely,
Sergey Booyny
AlarIT programmer
http://www.AlarIT.com
huh? :confused:Quote:
Originally posted by serg4444
use system command for start zip program
Sincerely,
Sergey Booyny
AlarIT programmer
http://www.AlarIT.com