How to put many files in one ZIP in PHP?

Possible Duplicate:
Download multiple files as a zip folder using php

Hi everyone, I have 5 images : image_1.png, image_2.png, image_3.png, image_4.png, image_5.png HOW can I put all these files in one ZIP file and allow them to be downloded. am in PHP/HTML

-------------Problems Reply------------

In one zip file with PHP? Then you can use this:

http://www.phpconcept.net/pclzip/

It is a really great library, and I used it a few times. Take a look into PclZip how to use it. If you have questions, ask ...

Category:php Views:0 Time:2011-03-02
Tags: php zip

Related post

  • Add non-ASCII file names to zip in Java 2008-09-19

    What is the best way to add non-ASCII file names to a zip file using Java, in such a way that the files can be properly read in both Windows and Linux? Here is one attempt, adapted from https://truezip.dev.java.net/tutorial-6.html#Example, which work

  • How do I set permissions (attributes) on a file in a ZIP file using Python's zipfile module? 2009-01-12

    When I extract files from a ZIP file created with the Python zipfile module, all the files are not writable, read only etc. The file is being created and extracted under Linux and Python 2.5.2. As best I can tell, I need to set the ZipInfo.external_a

  • Extracting files from a Zip archive programmatically using C# and System.IO.Packaging 2009-02-03

    I have a bunch of ZIP files that are in desperate need of some hierarchical reorganization and extraction. What I can do, currently, is create the directory structure and move the zip files to the proper location. The mystic cheese that I am missing

  • Create a file in a zip archive using stream wrapper 2009-11-13

    I want to use a zip stream wrapper in PHP to create zip file or add files in a zip archive. Here are my example : <?php echo file_get_contents('zip://file.zip#existing_file.txt'); file_put_contents('zip://file.zip#new_file.txt', 'Trying to put som

  • Add a folder having files into a zip file using JAVA 2010-02-02

    I am using java's java.util.zip api to add files and folders to a zip file, but when i add multiple files into the same folder, it deleted the old contents. Is there any way i can add files into the zip file without modifying existing contents in the

  • Appending files to a zip file with Java 2010-02-08

    I am currently extracting the contents of a war file and then adding some new files to the directory structure and then creating a new war file. This is all done programatically from Java - but I am wondering if it wouldn't be more efficient to copy

  • Open file, write to file, save file as a zip and stream to user for download 2010-02-18

    I'd like if someone could give me some advice on creating this script, which I will add to the existing plug-in (see code below) script below. So what I have now (with the script below) is a means to insert a predefined set of defaults into the wordp

  • How to extract files from a zip file using Lua? 2010-05-13

    How do I extract files using Lua? Update: I now have the following code but it crashes every time it reaches the end of the function, but it successfully extracts all the files and puts them in the right location. require "zip" function ExtractZipAnd

  • Copy files from a zip folder to another folder in nant 2010-06-01

    I want to copy the files from the zip folder to another folder. I am doing this , but it doesn't works <copy todir="Lib"> <fileset basedir="Output/RCxSL.Client.zip/ServiceClientDlls"> <include name="*.dll" /> </fileset> </c

  • Append a text File inside a Zip 2010-06-01

    I have zip file inside a Text file (file.txt inside a file.zip) and I would like to append to this file another text file file.txt outside the zip file. How can I do this? Is there a solution? I've tried to add Append =>1 parameters to IO::Compres

  • adding remote files to a zip file 2010-06-02

    Is there a way to add files to a zip file from another server with php's zip extension? ie. addFile(array('localfile.txt,'http://www.domain.com/remotefile.txt')) //(that obviously does not work) I suppose I can download the files to a temporal folder

  • No such file to load - zip/zip (MissingSourceFile) when running cucumber 2010-06-29

    It was been a long time I haven't run cucumber in my project. It's running good before but now, when I try to run cucumber features, I have this error: Using the default profile... no such file to load -- zip/zip (MissingSourceFile) /usr/local/lib/si

  • How do I programmatically check the date of a file in a Zip archive? 2010-07-15

    Given that I have a zip file called archive.zip that contains a file called customerData, how can I programmatically check the date of the file inside archive.zip? I'm using the command-line Winzip utility wzunzip, but I wouldn't object to possibly u

  • php script to write files and create zip file 2010-08-09

    I'm trying to develop an online formbuilder. Each user can build their own forms and I want to be able to provide a button that when clicked will download the users html form page along with its css file as a zip file. I know how to zip the files, bu

  • Run `head` on a text file inside a zipped archive without unpacking the archive 2010-09-27

    Greetings, I've taken over from a prior team and writing ETL jobs which process csv files. I use a combination of shell scripts and perl on ubuntu. The csv files are huge; they arrive as zipped archives. Unzipped, many are more than 30Gb - yes, that'

  • php creating zips without path to files inside the zip 2010-10-22

    I'm trying to use php to create a zip file (which it does - taken from this page - http://davidwalsh.name/create-zip-php), however inside the zip file are all of the folder names to the file itself. Is it possible to just have the file inside the zip

  • Modifying a single text file in a ZIP file, in PHP 2010-11-03

    I have a ZIP file on my server. I want to create a PHP file, loadZIP.php that will accept a single parameter, and then modify a text file within the ZIP to reflect that parameter. So, accessing loadZIP.php?param=blue, will open up the zip file, and r

  • JAVA Split huge file into multiparts ZIP. How to? 2010-12-22

    In my application I have to send XLS reports by email, but if the file is larger than 10 MB I have to split this file into multipart ZIP-s and send as a separate emails with attachments (one email - one ZIP part). If anyone knows library that will he

  • Count number of files in a Zip File with c# 2011-01-24

    I'm generating some .csv files and I need to compress this inside a Zip File. Ok, I have a framework to do this and probably everything will be fine. But! As TDD says I just can write code, after I have some tests! My first test sound simple, but I'm

  • How to update one file in a zip archive 2011-01-25

    Is it possible to replace a file in a zip file without unzipping deleting the old file adding the new file and rezipping it back? Reason is i have a zip file which is really big there is one xml inside the zip file that i have to update sometimes and

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.077 (s). 11 q(s)