User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Jul 2008
Posts: 3
Reputation: Ivan Rutter is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Ivan Rutter Ivan Rutter is offline Offline
Newbie Poster

Using php zip_open() in xampp

  #1  
Jul 10th, 2008
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2007
Location: Bangalore, India
Posts: 3,098
Reputation: nav33n has a spectacular aura about nav33n has a spectacular aura about 
Rep Power: 8
Solved Threads: 238
nav33n's Avatar
nav33n nav33n is offline Offline
Posting Sensei

Re: Using php zip_open() in xampp

  #2  
Jul 10th, 2008
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*
Reply With Quote  
Join Date: Jul 2008
Posts: 3
Reputation: Ivan Rutter is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Ivan Rutter Ivan Rutter is offline Offline
Newbie Poster

Re: Using php zip_open() in xampp

  #3  
Jul 10th, 2008
nav33n,

extension=php_zip.dll

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

Ivan
Reply With Quote  
Join Date: Jul 2008
Posts: 3
Reputation: Ivan Rutter is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Ivan Rutter Ivan Rutter is offline Offline
Newbie Poster

Re: Using php zip_open() in xampp

  #4  
26 Days Ago
Originally Posted by Ivan Rutter View Post
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.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb PHP Marketplace
Thread Tools Display Modes

Other Threads in the PHP Forum

All times are GMT -4. The time now is 3:02 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC