![]() |
Zip Encoder (read_file extension to allow file name) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Zip Encoder (read_file extension to allow file name) (/showthread.php?tid=4077) |
Zip Encoder (read_file extension to allow file name) - El Forum - 11-05-2007 [eluser]eedfwChris[/eluser] Not much of an addition, more of a "hey why doesn't this allow this?" With this function you can still name the file in the zip even if you are getting it from a file source. Hopefully this works for someone because I stopped using it shortly after I made it. All I did was change one line ![]() Code (APPPATH/libraries/MY_Zip.php): Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); Usage: Code: $this->load->library('zip'); Zip Encoder (read_file extension to allow file name) - El Forum - 11-07-2007 [eluser]llbbl[/eluser] this is used for page compression or to compress files on the server ? Zip Encoder (read_file extension to allow file name) - El Forum - 11-07-2007 [eluser]eedfwChris[/eluser] This is primarily to compress a file on the server but you could (though I have never tried) possibly get the contents of a website. You would use a different method in the zip class to zip a variable. Zip Encoder (read_file extension to allow file name) - El Forum - 02-27-2008 [eluser]stepwl[/eluser] That is exactly what i need. Thank you webPragmatist!!! |