I have this code:
$nomeZip = str_replace(".result", ".result.tar.gz", $pathAndFileName);
$a = new PharData($nomeZip);
$a->addFile($pathAndFileName);
$a->compress(Phar::GZ);
unlink($nomeZip);
Where:
$pathAndFileName = C:/wamp/www/prove/WORKSPACE/7d5e0799/SelectResult1.result
in my folder I obtain 2 files:
SelectResult1.result.tar.gz
SelectResult1.tar.gz
The first file have the same dimension of original file (bad)
The second file dimension is ok, but I want only one file with this name:
SelectResult1.result.tar.gz
and effectly zipped