if i have 10 files in a folder then how to make a zip file for download.
any suggestion here or any links . please reply...
thanks for reply in advance....
rajendher
0
Light Poster
Recommended Answers
Jump to Post`
Dear cereal you have just small mistake. I have updated the code. try this code. <?php # array of files $files = array( 'profile.txt', 'picture.jpg' ); # name $zipname = 'archive.zip'; # create the archive $zip = new ZipArchive; $res = $zip->open($zipname, ZipArchive::CREATE); if($res === TRUE) …
All 4 Replies
cereal
1,524
Nearly a Senior Poster
Featured Poster
arslanqamar
13
Unverified User
arslanqamar
13
Unverified User
cereal
commented:
thanks!
+13
cereal
1,524
Nearly a Senior Poster
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.