[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Which zip programs are installed on raq 3?



On Sun, Nov 11, 2001 at 08:13:33PM -0800, Sqlcoders.com Programming Dept wrote:
> 
> 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 thats a total guess, although it should mean the oroginal
> isnt overwritten.
> 
> looking @ php.net, php has the wonderful ability to read zips but not write
> them, isnt that nice<grin>
> 
> but i found a article which adresses 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 dosent
> cache the damn page, so perhaps they'll fix that page shortly[i sent a email
> to thier webmaster just now] in which case you can look there.
> 
> hth

  Hmmm, good info.  That being the case (output to stdout) then
  one should also be able to "code" a php script to "cat" the
  file to gzip and actually "output" it back at the browser by
  pre-pending the appropriate:

  print "Content-type: stream/x-gzip\n\n";

  ((above line not necessarily correct))

  So the browser knows what it is receiving, without ever 
  actually "storing" it as a compressed file on the server.  
  If the browser "understands" the "type" it would open with that 
  program, else it should pop up the infamous "Open/Save/Cancel" 
  window....

Larry Smith
SysAD ECSIS.NET
sysad@xxxxxxxxx