Welcome Guest, Not a member yet? Register   Sign In
How to upload and zip files ?
#1

[eluser]pisio[/eluser]
How i can make it to upload and zip one file? After Zipping process save the archive at the host , and delete unzipped files ?
#2

[eluser]cahva[/eluser]
Heres the things you need:
File uploading class
Zip encoding class

..and finally unlink() for deletion Smile
#3

[eluser]pisio[/eluser]
[quote author="cahva" date="1285907153"]Heres the things you need:
File uploading class
Zip encoding class

..and finally unlink() for deletion :)[/quote]
Only
Quote:$name = 'mydata1.txt';
$data = 'A Data String!';

$this->zip->add_data($name, $data);

// Write the zip file to a folder on your server. Name it "my_backup.zip"
$this->zip->archive('/path/to/directory/my_backup.zip');
I'm not sure. I see $this->zip->download('my_backup.zip'); and I don't want to download it.
I'll tray. Sorry for my bad English.
TNX !
#4

[eluser]cahva[/eluser]
Read harder Smile There's method called $this->zip->archive() which you are looking for.




Theme © iAndrew 2016 - Forum software by © MyBB