![]() |
Zip global - 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 global (/showthread.php?tid=24414) |
Zip global - El Forum - 11-09-2009 [eluser]Browser[/eluser] Hello, how can i do a unique file zip ? the people in different pages press "Add pdf to zip", but i dont know how can i do in only one file. I am using the zip class. Thanks you. Zip global - El Forum - 11-09-2009 [eluser]whitey5759[/eluser] This is normally how I would do it, but I haven't done so in CI (haven't had the need yet): http://php.net/manual/en/function.tempnam.php Zip global - El Forum - 11-09-2009 [eluser]Ben Edmunds[/eluser] Hey browser, Sorry but I don't quite understand your post. Can you be a little more descriptive? Zip global - El Forum - 11-09-2009 [eluser]Browser[/eluser] I have a lot of documents in my web. They are in different pages and the user can go adding documents to file .zip . I want that the user download only a file.zip with all the documents selected previosly. Zip global - El Forum - 11-10-2009 [eluser]Ben Edmunds[/eluser] Read up on the documentation here: http://ellislab.com/codeigniter/user-guide/libraries/zip.html You can use read_file to add the files you need to the zip. Zip global - El Forum - 11-10-2009 [eluser]Browser[/eluser] Yes, but i use read_file in other pages and the file.zip is not the same. I want campile all in the same file, but i cannot use a global vars. Zip global - El Forum - 11-10-2009 [eluser]Ben Edmunds[/eluser] So you want users to be able to select files on multiple pages that in the end are combined into one zip file? Zip global - El Forum - 11-10-2009 [eluser]BrianDHall[/eluser] I'd think the best would be to collect them in session vars then add them all at once. Otherwise you need to store a temporarily file.zip and add to it as you go along, which is definately a lot more complicated. Zip global - El Forum - 11-10-2009 [eluser]Browser[/eluser] Yes. |