Jump to content

Creating ZIP or TAR files with PHP


LordLanky

Recommended Posts

Hi All,

 

hopefully an easy one for you all. I've done the typical google searching etc however i have a few problems i need to overcome due to my stupid shared hosting scheme.

 

The only php modules i have that are related to this are: gzwrite and bzip2. What i need to do is create a single archive of a collection of files. i'm not bothered about compression at all, i just want all the files in one archive (zip is by far preferable).

 

I dont have things like ZipArchive or zipfile.

 

Any help is appreciated!! i use shared hosting so i cant install any new modules which is rubbish! I also dont have access to shell.

 

Many thanks,

Link to comment
Share on other sites

Thanks for that guys.

 

I'm using 5.19 of PHP. Annoying. This is ridiculous, you would have thought they#d let you make zip files! If you create a .gz file, can you create it without compression?

 

Basically, my aim is to make an .ePub file - which is a renamed .zip file containing uncompressed files.

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.