php_zip icon indicating copy to clipboard operation
php_zip copied to clipboard

Add addFromStream

Open Gemorroj opened this issue 8 years ago • 0 comments

It would be useful to be able to add files from a stream. example:

$f = fopen('https://github.com', 'r');

$zip = new ZipArchive();
$res = $zip->open('test.zip', ZipArchive::CREATE);
$zip->addFromStream('gihtub.html', $f);

Gemorroj avatar Dec 25 '17 01:12 Gemorroj