![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Aug 2002
Posts: 559
|
server side zip tool?
Hello, I got about 500 directories and I want zip all them, but each directory in a zip. it need looks like dir1.zip dir2.zip dir3.zip
Do u know any server side script/program that will do that? Im under unix. thanks, |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Mar 2006
Location: Europe
Posts: 254
|
From the top of my head:
Code:
for i in /where/those/directories/are/* ; do zip /output/path/$i.zip $i ; done ![]()
__________________
![]() QTbucks : featuring cherrywinters.com - sweetcarry.com - cutecaroline.com [email protected] :: ICQ 26505638 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
|
Code:
<? foreach (glob('path/to/dir/*',GLOB_ONLYDIR) as $dir) { `zip -j $dir $dir/*`; } ?> |
![]() |
![]() ![]() ![]() ![]() ![]() |