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
https://forums.phpfreaks.com/topic/149705-php-unzip/
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.