PHP-based archiving (zipping) tool

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
jennc
Forum Newbie
Posts: 3
Joined: Mon Aug 18, 2008 11:27 am
Location: New York

PHP-based archiving (zipping) tool

Post 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
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: PHP-based archiving (zipping) tool

Post 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
jennc
Forum Newbie
Posts: 3
Joined: Mon Aug 18, 2008 11:27 am
Location: New York

Re: PHP-based archiving (zipping) tool

Post 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
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Re: PHP-based archiving (zipping) tool

Post 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! :)
jennc
Forum Newbie
Posts: 3
Joined: Mon Aug 18, 2008 11:27 am
Location: New York

Re: PHP-based archiving (zipping) tool

Post 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
Post Reply