Jump to content

Quick question about PECL


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
Share on other sites

Just because php was compiled --with-zlib doesn't mean this extension is built/available. Does a call to phpinfo() mention anything about the zip extension?

 

What steps (if any) did you take to install this extension or is this a shared server?

Link to comment
Share on other sites

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?

 

 

Link to comment
Share on other sites

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.