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, Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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? 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.