Solved

Create ZIP file by specifying just the folder path name

Posted on 2004-10-01
7
243 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
php hashing methods 3 50
how to use a foreach loop in heredoc used to send email via php 14 42
Echo'd value as selected in dropdown 20 44
Ajax success not firing alert 6 45
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

710 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