Solved

Create ZIP file by specifying just the folder path name

Posted on 2004-10-01
7
211 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

758 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

22 Experts available now in Live!

Get 1:1 Help Now