Page 1 of 1

PHP-based archiving (zipping) tool

Posted: Mon Aug 18, 2008 11:33 am
by jennc
I would like to get recommendations for a PHP tool (utility) that zips up files pulled from various locations on a file server (file storage area, the "cloud" of files on the server, if you will).

In addition, this "tool" needs to be integratable to either an existing CMS application (like Drupal) or a custom-made application . . . meaning being able to be a part of the application (like a module for the CMS application).

Thanks for the anticipated ideas, insights, and recommendations.

jc

Re: PHP-based archiving (zipping) tool

Posted: Mon Aug 18, 2008 12:49 pm
by alex.barylski
I know of nothing...usually applications (phpMyAdmin) come with an export funcitonality built in...

The process is fairly simple...

1. Glob all files you wish to save
2. Use a Zip or Tar class to pack the files up
3. Send contents of file to browser for download

Re: PHP-based archiving (zipping) tool

Posted: Mon Aug 18, 2008 3:29 pm
by jennc
Thanks, Hockey, for your reply.

Yes, what you said is the idea. I am not a PHP guru (yet . . . ha ha), is there a Zip ot Tar class in PHP library to take care of the "packing"?

Thanks,
j

Re: PHP-based archiving (zipping) tool

Posted: Mon Aug 18, 2008 3:45 pm
by Luke
Did you try the manual...? :?

http://us2.php.net/manual/en/refs.compression.php

How about Google?

http://www.google.com/search?q=php+zip+library

Be resourceful man! :)

Re: PHP-based archiving (zipping) tool

Posted: Tue Aug 19, 2008 4:00 pm
by jennc
Yes, I have been looking at the documentation on php.net. I was also thinking of (hoping for) an easier-to-deploy utility that I could plug into this CMS app. that I am making so that I don't have to do everything myself (why reinvent the wheel if there is one good one out there? :wink: )

Thanks for the suggestions though :)

jc