2
I need to Compress files using PHP but my version is 5.1.6, I only tried to create the folder .zip
using the code below, however, as stated in the manual this functionality is only available from version 5.2.
<?php
$MD = date('md');
$dado = "Ticker_70_".$MD."_IPCDA.sql";
$Zipar = new ZipArchive();
$Zipar->open($dado.'.zip', ZIPARCHIVE::CREATE);
?>
I wonder if there is another method to compress files with PHP that works for my current version, through libraries outside or native of this version.
Edit1: I’m using Linux.