'/^[\/]([^\/]+)[\/](.*)$/', 'archive_subdir' => false, // the result zips don't have the tag subdir 'zipfile' => true, // stored as a zipfile 'archive_dir' => RESULTS_DIR, 'override_extractor' => 'raw' // we always want raw output )); $archive->display_from_archive( array( //~ array(path-regex,raw|simple|text|cpp,mime-type), ) );