How popular is PHP ZIP extension by hosting providers? Can I use it as default archive software for my WordPress plugin or should I take a look at another lib?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s probably easiest if you test for the existence of the extension in your scripts, and use your alternative if Ziparchive doesn’t exist. I use a wrapper class that checks whether the class is present, and switches to using pclzip (which is included in my library distribution) if not… but all the calls are made to the wrapper to pass on to ZipArchive or PCLZip as appropriate.