Solved

Create ZIP file by specifying just the folder path name

Posted on 2004-10-01
7
219 Views
Last Modified: 2008-02-26
Hello,

I would like to create a zip file from PHP just passing the folder path name.

Supose you have a folder called 'Main' and inside of it other subfolders and files.
From my PHP code i would just call something like:

zipFunction('Main');

Does someboby who can help me please?
Kind regards
0
Comment
Question by:arturmmaia
  • 2
  • 2
7 Comments
 
LVL 5

Expert Comment

by:php-webdesign
ID: 12198625
0
 
LVL 18

Expert Comment

by:armoghan
ID: 12198772
0
 
LVL 18

Accepted Solution

by:
armoghan earned 500 total points
ID: 12198783
0
 
LVL 4

Expert Comment

by:Skonen
ID: 12203192
Armoghan's last link is the only one that shows how to create a zip file, I didn't look it over, but I assume it works. The other two links just give information on the ZZIPlib library which does NOT support zip creation.
0
 
LVL 5

Expert Comment

by:php-webdesign
ID: 12491874
i agree... although there was no feedback of the author.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now