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
https://forums.phpfreaks.com/topic/172676-creating-zip-or-tar-files-with-php/
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.

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.