![]() |
How to zip a file in CI4 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: How to zip a file in CI4 (/showthread.php?tid=76776) |
How to zip a file in CI4 - judeluis18 - 06-18-2020 i have worked with CI3 which provided zip library but in CI4 there no such library. so i decided to go with php zipArchieve() im having an issue with that on server. Can anyone suggest a good zip library or how to go about using zipArchieve in CI4. thanks RE: How to zip a file in CI4 - InsiteFX - 06-19-2020 You can try this one. Ne-Lexa - PhpZip RE: How to zip a file in CI4 - kilishan - 06-19-2020 If your server has the right extension installed, PHP has it built in. RE: How to zip a file in CI4 - what2see - 10-15-2020 I'm trying to use php ZipArchive in my CI4 project. It is already enabled but it always give me this error: Class 'App\Controllers\ZipArchive' not found Can you help me how to use ZipArchive? Thanks. RE: How to zip a file in CI4 - paulbalandan - 10-20-2020 Prepend the namespace separator to ZipArchive. Like this $zip = new \ZipArchive(); or if you do not want that. Try this instead, <?php namespace App\Controllers; use ZipArchive; $zip = new ZipArchive(); |