[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Which zip programs are installed on raq 3?
- Subject: Re: [cobalt-users] Which zip programs are installed on raq 3?
- From: "Sqlcoders.com Programming Dept" <coders@xxxxxxxxxxxxx>
- Date: Sun Nov 11 11:20:25 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
----- Original Message -----
From: "Larry E. Smith" <lesmith@xxxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Cc: <sysad@xxxxxxxxxxxxxx>; "Larry E. Smith" <lesmith@xxxxxxxxxxxxxx>
Sent: Sunday, November 11, 2001 6:08 AM
Subject: Re: [cobalt-users] Which zip programs are installed on raq 3?
> On Sat, Nov 10, 2001 at 08:19:15PM -0800, Dave Thomas wrote:
> > Wow, thanks for the replies to all of you
> >
> > Larry, so to help this newbie, if I call system (in php)
> > gzip, it'll creat a .gz, however, a windows user can use it?
> >
>
> Dave, yesssssss - said with hesitation....
>
> > My goal in life now is to just have a .php page
> > compress a file and send the dang thing to be downloaded
> > dynamically to a windows pc
> >
> > I can die happily if that is what this can do
> >
> > thanks, I just wanted to make sure it would
> > and how to confirm it's installed?
> >
>
> Just login (telnet, ssh) and type "which gzip". It will either
> say what it is (where/pathname) or "not found" meaning it is
> not installed... Most of your Win.X software now comes
> "zipped" in one form or another - and most Win machines can
> "read" it, so the probability is very good here. You might
> just put a "link" to winzip on your pages (with approval) and
> let people know that it, or some uncompress utility that
> understands gzip will be required...
>
> > OH, I have a lot to learn :)
> >
> We all do in one way or another...
>
> Now we start getting "complicated". Can you gzip a file and
> have it "download" - yes.
>
> Problem is, your message(s) imply that whatever you are talking
> about is being stored "un-compressed". If you simply call gzip
> with a filename - it will compress "that" file, making it a
> "filename.gz" vice the original filename (eg: index.html
> becomes index.html.gz). Now the problem becomes how to
> "compress" the original (but not the master copy of the file)
> and then make that available for download... and I do not have
> enough information about what you are trying to do to give any
> sort of detail on how to do it....
Well I managed to give bad info on this thread once so lets go for a second
shall we <grin>,
gzip does offer a option to output to stdout, instead of overwriting the
file, and if you piped it into a different filename(ie gzip -c source.html >
myzip.gz), but that's a total guess, although it should mean the original
isn't overwritten.
looking @ php.net, php has the wonderful ability to read zips but not write
them, isn't that nice<grin>
but I found a article which addresses what you want to do , except the page
with the php component seems to be having an error, the parent page is at
http://www.phpbuilder.com/forum/archives/2/2001/4/4/133961
the actual tutorial is at ...
http://www.zend.com/zend/spotlight/creating-zip-files1.php . google doesn't
cache the damn page, so perhaps they'll fix that page shortly[I sent a email
to their webmaster just now] in which case you can look there.
hth
>
> Larry Smith
> SysAd ECSIS.NET
> sysad@xxxxxxxxx
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>