views:

122

answers:

1

Hi All, Please somebody help me. I want to compress a folder (which contains images & text files as well as few sub folders) in zip,rar,tar format & then give it for download to user. Is there any class/api/library/code to do so.

I am working on Joomla CMS.

Regards,

Shahu.

A: 

Joomla has compression and decompression in it's API.

See the documentation on JArchive:

http://api.joomla.org/Joomla-Framework/FileSystem/JArchive.html

bucabay