Jump to content

php unzip


valoukh

Recommended Posts

Hi everyone. I have a dilemma... I'm trying to unzip a file server-side (as part of a small application). I'm using the following code:

 

    $zip = new ZipArchive;
    $zip->open('TEST.zip');
    $zip->extractTo('./');
    $zip->close();
    echo "Ok!";

 

It's not working and through intensive research I've found that this is because the server doesn't have the zip 'extension' installed...or something. It's just a web hosting company (QiQ.co.uk) so I have no control over what's installed.

 

I've noticed they DO have something called "BZip", so my question is does anyone know of a way to convert zip files to bzip, or does anyone have an other ideas? E.g. is there any other way to unzip files without having this server-side support?

 

I'm pretty stuck here!

 

Thanks in advance,

valoukh.

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.