Page 1 of 1

compressing entire directory and contents with gzip

Posted: Sun Feb 29, 2004 1:34 pm
by toms100
im trying to use php to create a gzip file which contains all the files in a directory and the directorys in that directory (like zipping up a directory).
then this will be remotely transfered and ungziped using php again.
but i am unsure as to how i zip up more than one file :s

any help is much appreciated!

Posted: Mon Mar 01, 2004 12:51 pm
by Weirdan
you can gzip only one file at once. tar them first (it would produce one file), then gzip it.