Jump to content

Recommended Posts

I am using the zip extension for pecl for the first time (http://us.php.net/zip).  It is supposed to be installed on the server, but when I write

 

$zip = new ZipArchive();

 

as the docs have it, then I get this error:

 

PHP Fatal error: Class 'ZipArchive' not found

 

for that line.

 

Is there something else I have to do to use PECL?  Like an include?

Link to comment
https://forums.phpfreaks.com/topic/85748-quick-question-about-pecl/
Share on other sites

It seems quite a few people have had the same issue, but so far, I've yet to find somebody who has solved it.  Please let me know if you need certain information about the server.  Right now, it says: --with-zlib, but it still does not find the class.

thorpe,

 

What should I look for there?  But no, I don't really see anything.  It is a dedicated, managed server.  I just send them an email, but I am pretty sure all they did was compile with the option because that is what the PHP help page said.  What else needs to be done?

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.