By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,515 Members | 1,363 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,515 IT Pros & Developers. It's quick & easy.

How to ZIP a Directory and Its Files Using PHP on Plesk?

nicebasic
P: 91
I have several hundred files on a server mananged by Plesk 9.5.1 and I wish to use PHP to ZIP files or folders recursively to be able to backup specific files and folders when needed.

As you know, Plesk does not provide ZIP or Compress functionality by itself. My Hosting company does not provide any addons to zip files, so I need to use PHP for this.

I searched the Internet to find a simple PHP code, and I tried some of them. But none of them worked for me.

Since I know nothing about PHP, I need help in this regard.

Can anyone give me a simple code that can Compress a Folder and Its Files into a Zipped File?

Any help would be appreciated.

Thank you in advance.
Mar 21 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.