Re: Zipping on the fly

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

 



On Wed, 2005-06-29 at 13:28 -0400, Jack Jackson wrote:
> hi,
> I'm providing a download script which lets trusted users view a 
> directory and select a file to download; I don't want to store the files 
> zipped on the server. Is there a fast, built-in way to zip the selected 
> file on the fly and let the user download the zipped copy? I looked at 
> php.net/zip and didn't see any...
> 
> Thanks in advance
> 

I would create a temporary file and zip it using the exec() function.
IIRC, PHP has functions to generate temporary file names. 

Good luck.

A;

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux