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

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.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.