Help!

Running xampp (basic package) version 1.6.6a 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\ext.

Question. What have I missed or done incorrectly?

Thanks,

Ivan

nav33n,

extension=php_zip.dll

Not commented in neither \xampp\bin\php.ini nor \xampp\php\php.ini,
but thanks for the question.

Ivan

Help!

Running xampp (basic package) version 1.6.6a 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\ext.

Question. What have I missed or done incorrectly?

Thanks,

Ivan

Problem caused by running script from within an IDE.

zip_open worked as expected when running directly in a Browser.

This article has been dead for over six months. Start a new discussion instead.