Answers for "php compress csv file"

PHP
0

php compress csv file

$zip = new ZipArchive();
$filename = "./test1.zip";

if ($zip->open($filename, ZipArchive::CREATE)!==TRUE) {
    exit("cannot open <$filename>\n");
}

$zip->addFile($thisdir . "/file1.csv");
$zip->close();
Posted by: Guest on August-13-2020

Browse Popular Code Answers by Language