Jump to content

Why do I get Fatal error: Call to undefined function: zip_open()


vivien

Recommended Posts

Im taking my on-the-job.

 

<?php
$zip = zip_open("zip.zip");
if ($zip) {
  while ($zip_entry = zip_read($zip)) {
    $fp = fopen("zip/".zip_entry_name($zip_entry), "w");
    if (zip_entry_open($zip, $zip_entry, "r")) {
      $buf = zip_entry_read($zip_entry, zip_entry_filesize($zip_entry));
      fwrite($fp,"$buf");
      zip_entry_close($zip_entry);
      fclose($fp);
    }
  }
  zip_close($zip);
}
?>

 

 

my supervisor said that i have a library to add.. im searching on it but i cant find anything..

help pls.. :-[

 

i run this on linux.

is this the one?

 

zlib

Zlib Support => enabled

Stream Wrapper support => compress.zlib://

Stream Filter support => zlib.inflate, zlib.deflate

compiled Version => 1.2.1.2

Linked Version => 1.2.1.2

 

Directive => Local Value => Master Value

zlib.output_compression => Off => Off

zlib.output_compression_level => -1 => -1

zlib.output_handler => no value => no value

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.