Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

lDownload multiple files as a zip-file using php

$files = array('readme.txt', 'test.html', 'image.gif');
$zipname = 'file.zip';
$zip = new ZipArchive;
$zip->open($zipname, ZipArchive::CREATE);
foreach ($files as $file) {
  $zip->addFile($file);
}
$zip->close();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #lDownload #multiple #files #php
ADD COMMENT
Topic
Name
5+8 =