shage Posted December 29, 2007 Share Posted December 29, 2007 Anyone know and good tutorials to zip up folder and all contents in the same dir structure. I found a few but only zip up one file Link to comment https://forums.phpfreaks.com/topic/83649-zip-up-whole-folder/ Share on other sites More sharing options...
tibberous Posted December 29, 2007 Share Posted December 29, 2007 Are you wanting a code only method? If you are on linux you can use `` to execute the zip command in shell. Link to comment https://forums.phpfreaks.com/topic/83649-zip-up-whole-folder/#findComment-425509 Share on other sites More sharing options...
shage Posted December 29, 2007 Author Share Posted December 29, 2007 either or im trying to make it as easy as possible since im new lol Link to comment https://forums.phpfreaks.com/topic/83649-zip-up-whole-folder/#findComment-425536 Share on other sites More sharing options...
redarrow Posted December 29, 2007 Share Posted December 29, 2007 did u read my post m8........ http://www.phpfreaks.com/forums/index.php/topic,174745.msg773136.html#msg773136 zip manual m8 http://uk3.php.net/zip Link to comment https://forums.phpfreaks.com/topic/83649-zip-up-whole-folder/#findComment-425542 Share on other sites More sharing options...
shage Posted December 29, 2007 Author Share Posted December 29, 2007 yes i dont have the zip whole file on there everything else works perfect Link to comment https://forums.phpfreaks.com/topic/83649-zip-up-whole-folder/#findComment-425544 Share on other sites More sharing options...
shage Posted December 30, 2007 Author Share Posted December 30, 2007 the sample they have on php is broken Link to comment https://forums.phpfreaks.com/topic/83649-zip-up-whole-folder/#findComment-425571 Share on other sites More sharing options...
redarrow Posted December 30, 2007 Share Posted December 30, 2007 have you got the ziplib and dll on your server installed it not default ... Link to comment https://forums.phpfreaks.com/topic/83649-zip-up-whole-folder/#findComment-425590 Share on other sites More sharing options...
shage Posted December 30, 2007 Author Share Posted December 30, 2007 host said it is installed Link to comment https://forums.phpfreaks.com/topic/83649-zip-up-whole-folder/#findComment-425599 Share on other sites More sharing options...
shage Posted December 30, 2007 Author Share Posted December 30, 2007 im trying to tar just a folder and all folders inside the folder exec("tar cfvz test.tgz $content_folder") when i run that command i get the folders before that folder, is there any way to get just the folder i want and all folders inside that folder. Link to comment https://forums.phpfreaks.com/topic/83649-zip-up-whole-folder/#findComment-425624 Share on other sites More sharing options...
hitman6003 Posted December 30, 2007 Share Posted December 30, 2007 Try one of these: http://www.phpclasses.org/browse/package/945.html http://www.phpclasses.org/browse/package/2322.html Link to comment https://forums.phpfreaks.com/topic/83649-zip-up-whole-folder/#findComment-425795 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.