Create ZIP file by specifying just the folder path name

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
arturmmaiaAsked:
Who is Participating?
 
armoghanConnect With a Mentor Commented:
0
 
php-webdesignCommented:
0
 
armoghanCommented:
0
 
SkonenCommented:
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
 
php-webdesignCommented:
i agree... although there was no feedback of the author.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.