phpknight Posted January 13, 2008 Share Posted January 13, 2008 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? Quote Link to comment Share on other sites More sharing options...
phpknight Posted January 13, 2008 Author Share Posted January 13, 2008 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. Quote Link to comment Share on other sites More sharing options...
trq Posted January 13, 2008 Share Posted January 13, 2008 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? Quote Link to comment Share on other sites More sharing options...
phpknight Posted January 13, 2008 Author Share Posted January 13, 2008 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? Quote Link to comment Share on other sites More sharing options...
trq Posted January 13, 2008 Share Posted January 13, 2008 I'm not 100% sure having never used that extension, but I'm under the impression that it also needs to be installed via PECL. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.