Re: [PHP] Question about using system call/gzip

2001-11-11 Thread David Robley

On Mon, 12 Nov 2001 16:51, [EMAIL PROTECTED] wrote:
> Gzip only compresses single files?
>
> So what if I want to compress a directory and have it download when a
> page is accessed?
>
> I thought gzip would allow this. To compress a specified directory
> when page.php is accessed. This is confusing. I tried the zend.com
> articles, too confusing to grasp. I am a bit confused
>
> Thanks for your time, I appreciate it

Hmm, think I spoke too soon. It appears that you can concatenate several 
files into one gzipped file - have a look at man gzip. Tarring and 
zipping is a common way of doing this, however. (Not tarring and 
feathering, usually reserved for those who give wrong advice...)

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   I'm at the corner of Walk and Don't Walk.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Question about using system call/gzip

2001-11-11 Thread Joelmon2001

Gzip only compresses single files?

So what if I want to compress a directory and have it download when a page is 
accessed?

I thought gzip would allow this. To compress a specified directory
when page.php is accessed. This is confusing. I tried the zend.com articles, 
too confusing to grasp. I am a bit confused

Thanks for your time, I appreciate it





Re: [PHP] Question about using system call/gzip

2001-11-11 Thread David Robley

On Mon, 12 Nov 2001 16:28, [EMAIL PROTECTED] wrote:
> Hello. I just want to confirm that if I use a system call to
> execute gzip, so I can zip a directory, the file can be
> decompressed by windows users
>
> for example, if I visit
> bleh.php and it compresses a directory /directory
> will that file that it creates, which I download, be
> able to be unpacked using a 'winzip' for example on a windows machine?
>
> Please insert "Yes" :)
>
> Thanks
>
> Joel

Presumably you mean tar and gzip, because gzip only compresses single 
files; in which case the answer is a qualified 'yes' - qualified because 
earlier versions of Winzip (and no, I don't remember when it changed) 
don't do compressed tar files.

I believe this info is also on the Winzip site.

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   Now go away or I shall taunt you a second time!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]