truncate(); $filesToAppend[] = "/tmp/file1.txt"; $filesToAppend[] = "/tmp/file2.txt"; // The second parameter specifies prefix. The prefix is normally not included // in the archive. $archive->appendToCurrent( $filesToAppend, "/tmp/" ); ?>