HI!
i am using moodle 2.03.i am writing a function to zip all the course files in a single folder.But when the course files are more than 800 MB this function does not work.
i am using the following function.Please help me how can i allow this function to create zip folder of files with more than 200 MB.
function assignment_pack_files($filesforzipping) {
global $CFG;
//create path for new zip file.
$tempzip = tempnam($CFG->dataroot.'/temp/', 'assignment_');
//zip files
$zipper = new zip_packer();
if ($zipper->archive_to_pathname($filesforzipping, $tempzip)) {
return $tempzip;
}
return false;
}