how to make azip file

how to make azip file

by Alpesh Mistry -
Number of replies: 6
hi
sorry if any forum present.
i want to create a zip file of my folder by clicking on one button
when student click on that button then server will create a zip file on the of selected files on the fly.
so is there any API is available so i can use it and create zip file.

Average of ratings: -
In reply to Alpesh Mistry

Re: how to make azip file

by John White -
Alpesh,

In course Files, you can tick any files, and then from the drop-down 'with chosen files...', select 'Create zip archive'

But will you allow students access rights to your course files???

Regards,
John

Note: This discussion really belongs in the General Problems forum.
In reply to John White

Re: how to make azip file

by Alpesh Mistry -
thanks for reply.

john

I need to use zip file API if there is any available in moodle.
so i can use it in my new page to zip file.
i tried to find it but fail.

i am making one php page on this page it will make zip file of given files and put it into proper place so client can easily download that zip.

so i want to know function which make zip.
In reply to Alpesh Mistry

Re: how to make azip file

by Rosario Carcò -

Did you finish your work? I am doing the same. I wrote a block to allow teachers and students to download all published files of a course as zip_archive. To finish my block I only need code to serve the zip_archive to the users' browser.

Any hints are very appreciated, Rosario

Average of ratings: Useful (1)