•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 391,709 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,403 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 267 | Replies: 3
![]() |
•
•
Join Date: Jul 2008
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
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
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
•
•
Join Date: Nov 2007
Location: Bangalore, India
Posts: 3,098
Reputation:
Rep Power: 8
Solved Threads: 238
Check if extension=php_zip.dll is commented in php.ini.
Last edited by nav33n : Jul 10th, 2008 at 7:34 am.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
*PM asking for help will be ignored*
*PM asking for help will be ignored*
•
•
Join Date: Jul 2008
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
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.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
- Previous Thread: Login
- Next Thread: Help displaying results



Linear Mode