the problem comes when i upload a zip file (the language pack) through the "language support" module.
I can see the file is uploaded correctly, but nothing more happens, so i checked in the apache error log and i saw the problem, 'unzip' is not recognized as an internal or external command
This is the option in config file:
/**
* uploadUnzipCommand: shell command to unzip archives, used by WireUpload class.
*
* If unzip doesn't work, you may need to precede 'unzip' with a path.
*
*/
$config->uploadUnzipCommand = 'unzip -j -qq -n /src/ -x __MACOSX .* -d /dst/';
but i have no idea how it can be fixed.
I know the basic php script to unzip files:
<?php
$zip = new ZipArchive;
$res = $zip->open('my_zip_file.zip');
if ($res === TRUE) {
$zip->extractTo('my_extract_to_dir/');
$zip->close();
echo 'ok';
} else {
echo 'failed';
}
?>
but i have not the knowledge to implement this in PW