Hi everybody,
I hope someone can help me solving an issue that has been keeping me stuck in my work for days now.
Basically I keep getting this error
Fatal error: Class 'ZipArchive' not found.
although I included, seemingly successfully, the extension php_zip.dll.
This is what phpinfo() says:
Zip enabled
Extension Version $Id: php_zip.c,v 1.1.2.33 2007/05/19 22:25:11 pajoye Exp $
Zip version 2.0.0
Libzip version 0.7.1
zlib
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
Linked Version 1.2.3
Directive Local Value Master Value
zlib.output_compression On On
zlib.output_compression_level -1 -1
zlib.output_handler no value no value
What's really really weird is that get_declared_classes() doesn't return ZipArchive while from get_defined_functions() I get the zip related functions(zip_open, zip_close ecc.). I'm not an expert but I think ZipArchive class and zip_open function come from the same dll. Am I wrong?
I'm developing on a virtual machine mounting Windows Server 2003, II6 v.6.0 e PHP v. 5.2.9.
Unfortunately I cannot use another library for zip file management cause ZipArchive class is required by ExcelPHP library, and I really need to use it
Ideas anyone? I really don't know what to try next!
Thanks a lot for your help.
ZipArchive issue
Moderator: General Moderators
Re: ZipArchive issue
Both the ZipArchive class and zip_open()-and-friends come from php_zip.dll. However, zlib is something different and probably unrelated to your problem. I disabled "extension=php_zip.dll" in my php.ini and still saw zlib in phpinfo().
When is the last time you restarted your server?
If all else fails, one work-around is to use XAMPP for development.
Edit: This post was recovered from search engine cache.
When is the last time you restarted your server?
If all else fails, one work-around is to use XAMPP for development.
Edit: This post was recovered from search engine cache.
Last edited by McInfo on Tue Jun 15, 2010 3:36 pm, edited 1 time in total.
Re: ZipArchive issue
I'm still working locally on a virtual machine, so I often turn off and on the server.
Thanks a lot, I'll try your solution at once, hope that helps! I'll let you know
Thanks a lot, I'll try your solution at once, hope that helps! I'll let you know
Re: ZipArchive issue
I was amazed by that package you suggested! ZipArchive ran fine on it, tomorrow I'll try ExcelPHP library.
I still wonder why it wouldn't work on IIS...
Anyway really thanks a lot, I was totally stuck!
I still wonder why it wouldn't work on IIS...
Anyway really thanks a lot, I was totally stuck!