We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,470 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

creating multiple .zip file

how can i create multiple files into multiple zip at once. For eg : I have file1, file2 file3.... etc. to file1.zip, file2.zip2 file3.zip..... at once..is it possilbe..

4
Contributors
3
Replies
1 Year
Discussion Span
2 Months Ago
Last Updated
11
Views
brainfo
Junior Poster in Training
67 posts since Sep 2011
Reputation Points: 5
Solved Threads: 1
Skill Endorsements: 0

how can i create multiple files into multiple zip at once. For eg : I have file1, file2 file3.... etc. to file1.zip, file2.zip2 file3.zip..... at once..is it possilbe..

Yes, You can take a look at these tutorials:

http://davidwalsh.name/create-zip-php

http://www.xpertdeveloper.com/2011/09/create-a-zip-file-using-php/

http://www.webinfopedia.com/multiple-file-download-by-creating-zip-file-in-PHP.html

LastMitch
Industrious Poster
4,393 posts since Mar 2012
Reputation Points: 149
Solved Threads: 351
Skill Endorsements: 47

You just have to loop your code and let the counter edit na file name ....s

imBaCodes
Junior Poster
168 posts since Apr 2013
Reputation Points: 2
Solved Threads: 18
Skill Endorsements: 9

before the looping, as what imBaCodes said. you must have an array

masterjiraya
Posting Whiz
322 posts since Jul 2008
Reputation Points: 10
Solved Threads: 32
Skill Endorsements: 4

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.0661 seconds using 2.7MB