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.
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 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.
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.
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.
See zip_files in moodlelib
thanks a lot
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
Here is my first beta:
Rosario