Not abel to download file using zip library |
[eluser]nandish[/eluser]
Hi guys <?php class CTest extends Controller { function __Construct() { parent::Controller(); $this->load->library('zip'); } function index() { $path = base_url()."book_files/fs1393.pdf"; $this->zip->read_dir($path); // Download the file to your desktop. Name it "my_backup.zip" $this->zip->download('my_backup.zip'); } } ?> am not getting any error but Its not downloading i can able to download file using helper file (download) but it wont give in zip Thanks in advance
[eluser]pistolPete[/eluser]
Did you enable error logging / displaying? From the user guide libraries/zip.html: Quote:$this->zip->read_dir()You should use $this->zip->read_file() . |
Welcome Guest, Not a member yet? Register Sign In |