Solved

how to enable zipArchive in php 5.2.3 on windows

Posted on 2008-10-20
4
1,677 Views
Last Modified: 2013-12-13
Hi experts,

We're running a build of php 5.2.3 but the zipArchive isn't working and we get:

Fatal error: Class 'ZipArchive' not found in ourfilename.php

php_zip.dll is in the ext folder and the extension is enabled in php.ini

What else do we need to do?

Help appreciated...
0
Comment
Question by:jammy-d0dger
  • 2
4 Comments
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 22760171
did you compile with, --enable-zip configure option
0
 

Author Comment

by:jammy-d0dger
ID: 22760203
didn't compile it ourselves, it was pre-installed on a Fasthosts Dedicated server...  could you please give me instructions on exactly what I would need to do to compile as you mention above... we have full desktop access so we can do anything required.
0
 
LVL 6

Expert Comment

by:thebradnetwork
ID: 22762791
Is this a windows or Linux server?
0
 
LVL 6

Accepted Solution

by:
thebradnetwork earned 500 total points
ID: 22762824
I am going to assume a Windows box because you said you had "desktop access" and you mentioned a DLL file.

To get it working on a Windows machine your going to need to go download  zLib ( http://www.zlib.net/ ) here are the instructions given by PHP on how to get it running ( http://us2.php.net/manual/en/zip.installation.php )
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now