I'm trying to write a script to get files form a zip archive. Problem is, I get an error when i try to use any of the zip commands: zip_open, zip_close, etc.

error -> Fatal error: Call to undefined function: zip_open()

The page for zip_open at php.net says that PHP must be installed with the --with-zip option, but then looking under 'Complete list of configure options' under 'Installation' in the manual, it says that --with-zip is only for php3.

How to I enable zip support in php4?

    look and see if theres a module zip.dll or something and then in your php.ini set it to run.

      Originally posted by PHPGuru_2700
      look and see if theres a module zip.dll or something and then in your php.ini set it to run.

      Sorry, forgot to mention that it's a freebsd system, not windows.

        5 months later

        same problem here .... the strange thing is that
        phpinfo reports me that zlib is supported

        zlib
        ZLib Support enabled

        Compiled Version 1.1.3

        Linked Version 1.1.3

        Directive Local Value Master Value
        zlib.output_compression Off Off
        zlib.output_compression_level -1 -1
        zlib.output_handler no value no value

        Anyone can help me ?
        Thank you

          Originally posted by graziano
          same problem here .... the strange thing is that
          phpinfo reports me that zlib is supported


          zlib
          ZLib Support enabled

          Compiled Version 1.1.3

          Linked Version 1.1.3

          Directive Local Value Master Value
          zlib.output_compression Off Off
          zlib.output_compression_level -1 -1
          zlib.output_handler no value no value



          Anyone can help me ?
          Thank you

          I finally just gave up and installed unzip from archivers/unzip in the ports tree.

            Write a Reply...