Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 18th Feb 2010, 11:26 PM   #1
Warrior Member
 
Join Date: 2009
Posts: 13
Thanks: 1
Thanked 1 Time in 1 Post
Default
php: zip many files, how best method ?
Share on: 
fb share twitter share gplus share more share

I use glob for search files by filter and want to zip files to archive.zip + keep structure folders.

1. use pclzip library
2. use shell_exec + zip , but I can not understand how to write command line for zip

thanks

net worker
blam is offline  
Unread 20th Feb 2010, 07:40 AM   #2
Advanced Warrior
War Room Member
 
Bruce Hearder's Avatar
 
Join Date: 2004
Location: Perth, Australia.
Posts: 724
Thanks: 6
Thanked 184 Times in 136 Posts
Default
Re: php: zip many files, how best method ?
Share on: 
fb share twitter share gplus share more share

Does this help

Zip a directory in PHP - Stack Overflow

Bruce
Bruce Hearder is offline  
Unread 20th Feb 2010, 07:53 AM   #3
Warrior Member
 
Join Date: 2009
Posts: 13
Thanks: 1
Thanked 1 Time in 1 Post
Default
Re: php: zip many files, how best method ?
Share on: 
fb share twitter share gplus share more share

thanks, nice and simply method, i already do it as shell_exec('zip archive.zip /home/...../filname');

net worker
blam is offline  
Closed Thread


Bookmarks

Tags
files, method, php, zip


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 02:25 PM.