Click to See Complete Forum and Search --> : compress more file whith gz..


Rooting
December 22nd, 2007, 09:14 AM
hi friends..
how can i compress more that one file whith gz??.
and after i download it, i need to delete this file..
can i do whoith unlink??..
but if i unlink before that i download it??..
a solution??...
thanks!.

olivthill
December 22nd, 2007, 10:17 AM
gz?? with two question marks? Do you mean gzip?

What is your environement? Windows, Unix, other?

Let's suppose you are under Unix.
Usually, files are compressed one at a time with gzip, and then they are grouped together with tar or with cpio.

Rooting
December 22nd, 2007, 02:57 PM
so, how can i do to compress whith tar the
file gz??..
such as i wont to create an archive in php, whith 2 file..

codeguru.php
readme.read

how can i do to compress it in a tar.gz or only gz whith a php page??..
thanks!!..

Ali Imran
January 14th, 2008, 11:00 AM
You can use a premade class to create tar, bz2, tar.gz, zip files very easily.

http://lk.users.phpclasses.org/browse.html/package/945.html

I hope it helps.

regards