LordLanky Posted September 1, 2009 Share Posted September 1, 2009 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 More sharing options...
trq Posted September 1, 2009 Share Posted September 1, 2009 You need a better host by the sounds of it. You may still however have access to some shell commands via exec. Link to comment https://forums.phpfreaks.com/topic/172676-creating-zip-or-tar-files-with-php/#findComment-910213 Share on other sites More sharing options...
Zyx Posted September 1, 2009 Share Posted September 1, 2009 What PHP version are you using? If 5.3+, then your installation should have installed by default the following extension: http://docs.php.net/manual/en/book.phar.php Link to comment https://forums.phpfreaks.com/topic/172676-creating-zip-or-tar-files-with-php/#findComment-910228 Share on other sites More sharing options...
LordLanky Posted September 1, 2009 Author Share Posted September 1, 2009 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 https://forums.phpfreaks.com/topic/172676-creating-zip-or-tar-files-with-php/#findComment-910404 Share on other sites More sharing options...
LordLanky Posted September 1, 2009 Author Share Posted September 1, 2009 I have noticed i have: Pear5 modules: Archive::Tar Archive::Zip and Pearl modules: Archive::Tar Archive::Tar::Constant Archive::Tar::File Archive::Zip Can i instantiate these somehow using php? Link to comment https://forums.phpfreaks.com/topic/172676-creating-zip-or-tar-files-with-php/#findComment-910411 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.