Jump to content

zip_open()


Ivan Rutter

Recommended Posts

Help!  -  Fatal error: Call to undefined function zip_open()

 

Running xampp (basic package) version 1.6.6a (Apache v.2.2.8 and php 5.2.5) under windows XP Professional,

 

installed to D:\xampp.

 

Attmpting to use zip_open() in php script and getting:

 

Fatal error: Call to undefined function zip_open() in D:\xampp\htdocs\tms_test\zip_test.php on line 3

 

The php script, from the 'w3schools' website, is:

 

        <?php

        $zip = zip_open("test.zip");

        zip_read($zip);

        echo "zip_open and zip_read appear to have worked."; // my version of 'some code'.

        zip_close($zip);

        ?>

 

and as recommended, zlib123-dll.zip and pecl5.2-win32-200807092030.zip have been downloaded.

 

The contents of the above have been extracted to D:\xampp\php\ext.

 

In php.ini,

 

extension_dir=D:\xampp\php\ext

 

extension=php_zip.dll

 

extension=php_zlib1.dll

 

 

Question. What have I missed or done incorrectly?

 

Thanks,

 

Ivan

 

Link to comment
https://forums.phpfreaks.com/topic/114299-zip_open/
Share on other sites

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.