<?php
$zip = new ZipArchive();
if(!$zip->open('poo.zip', ZIPARCHIVE::CREATE) ){
echo "Could create zip file!";
}
$files = array(
'pi.bmp',
'index.php'
);
foreach($files as $value){
$zip->addFile($value);
}
$zip->close();
?>
GMgKe586q6suSQnyqZLlGCooeWM
No comments:
Post a Comment