login about faq

If i append/add a file to zip using PHP, does Chilkat writes anything to memory? Like first copy to memory than add to the disk...

asked Feb 05 '13 at 10:32

chilkat's gravatar image

chilkat ♦♦
11.8k316358420


There are two ways to append a file to an existing zip:

1) Open the zip, append files by calling one or more of the Append* methods one or more times, and then write the zip. If appending a file via one of the Append* methods, such as AppendFiles, no file data is read into memory. What happens is that the zip object will now contain entries that point to the files that are to be included in the zip when eventually written. When the zip is written, such as by calling WriteZipAndClose, the file data is streamed from the referenced files directly into the zip. Note: the entire .zip is re-written.

2) A quicker way to append files to an existing .zip is via the QuickAppend method. See the online reference documentation, which includes links to examples for using QuickAppend.

link

answered Feb 05 '13 at 10:37

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×87

Asked: Feb 05 '13 at 10:32

Seen: 1,118 times

Last updated: Feb 05 '13 at 10:37

powered by OSQA