Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8026919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:38:36+00:00 2026-06-04T23:38:36+00:00

I have just now discovered that my hosting server does not support the ZIP

  • 0

I have just now discovered that my hosting server does not support the ZIP class for PHP.

However, it has the Zlib installed and supported .

Is there any library / function / hack / class / that will let me handle ZIP files on such a server ?

Basically I want to create zip files. I am afraid my users will be scared of the GZ extension and i would like to serve them ZIP extension (that they will open normally on win systems) ?

(please do not tell me to change hosting – I already know I have to , but it will take time and the thing is quite urgent..)

UPDATE I . thanks to @Mark Baker – i was able to extract a file with the pclzip class and this simple code

<?php

 include('pclzip.lib.php');
  $archive = new PclZip('wp.zip');
  $location = $_SERVER['DOCUMENT_ROOT'];
  if ($archive->extract(PCLZIP_OPT_PATH, $location ,
                        PCLZIP_OPT_REMOVE_PATH, 'install/release') == 0) {
    die("Error : ".$archive->errorInfo(true));
  }
?>

(I just wanted to post the code here , it was too lng for comment , and I did not wanted to post another answer )

Still did not tested the creation, but if it works the same – then I really want to kiss the developers of that class ! 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T23:38:38+00:00Added an answer on June 4, 2026 at 11:38 pm

    Zlib doesn’t help you create zip files.

    As an alternative to your missing ZipArchive, you might take a look at the PCLZip library. This is pure PHP, so no need for additional extensions, and allows you to create zip files without ZipArchive.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just discovered the nifty unhandled exception handler for cocoa-touch. Now that I
I'm a Java programmer, but not a JavaScript programmer. I have just discovered YUI,
I am new to NHibernate and have just started right now. I have very
I have just installed Devise and now I want to make better style for
I have just updated SDK and ADT for eclipse and now there is one
I have just installed QAS Pro Web on a computer and I am now
I have just explore javaFX. I am now programming modul based application by netBeans
I have just created a GIT on a folder. I now want to add
I have been confused by a very strange mex error just now . .
I have just download the .deb and installed it. It works. Now i want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.