Nizam
Nizam

Reputation: 505

How to compress files in CakePHP and serve it as download

I want to zip compress files according to what the admin want and then admin will be able to download the files he selected in one zip files.. Is there any plugin/component to compress these files and serve it as download to user?

Upvotes: 0

Views: 869

Answers (1)

Jonathan
Jonathan

Reputation: 5547

There is a ZIP extension for PHP that you could use.

Examples of usage here: www.php.net/manual/en/zip.examples.php

Upvotes: 1

Related Questions