Results 1 to 4 of 4

Thread: Creating zip files and attaching to e-mail

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 1999
    Posts
    26

    Question Creating zip files and attaching to e-mail

    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

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    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.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3
    New Member
    Join Date
    Sep 2002
    Posts
    14
    use system command for start zip program

    Sincerely,
    Sergey Booyny
    AlarIT programmer
    http://www.AlarIT.com

  4. #4
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by serg4444
    use system command for start zip program

    Sincerely,
    Sergey Booyny
    AlarIT programmer
    http://www.AlarIT.com
    huh?
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width