Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php compress csv file

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

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

$zip->addFile($thisdir . "/file1.csv");
$zip->close();
 
PREVIOUS NEXT
Tagged: #php #compress #csv #file
ADD COMMENT
Topic
Name
7+5 =