Ivan Rutter Posted July 11, 2008 Share Posted July 11, 2008 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 More sharing options...
waynew Posted July 11, 2008 Share Posted July 11, 2008 Are there no include files? Link to comment https://forums.phpfreaks.com/topic/114299-zip_open/#findComment-587742 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.