Answers for "install php unzip"

PHP
1

unzip file php

$zip = new ZipArchive;
$res = $zip->open('file.zip');
if ($res === TRUE) {
  $zip->extractTo('/myzips/extract_path/');
  $zip->close();
  echo 'woot!';
} else {
  echo 'doh!';
}
Posted by: Guest on September-10-2020
0

install php unzip

(sudo) yum install zip unzip php-zip
(sudo) apt install zip unzip php-zip
Posted by: Guest on September-11-2021

Browse Popular Code Answers by Language