valoukh Posted March 16, 2009 Share Posted March 16, 2009 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. Quote Link to comment Share on other sites More sharing options...
valoukh Posted March 16, 2009 Author Share Posted March 16, 2009 By the way this is for some photo album code I'm trying to write - the idea is for the user to upload a zip file full of images so I can process it into an album... 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.