I tried to unzip a zip file in my server using this code but doesn't work in my server
<?php
$zip = new ZipArchive;
$res = $zip->open('Dolphin.zip');
if ($res === TRUE) {
$zip->extractTo('dolphin/');
$zip->close();
echo 'ok';
} else {
echo 'failed';
}
?>
but im getting this
Fatal error: Class 'ZipArchive' not found in **\wwwroot\extractor.php on line 2
HOW TO SOLVE THIS PROBLEM???