Re: PHP File Compression

From: Manuel Lemos (mlemos_at_acm.org)
Date: 10/11/04


Date: Mon, 11 Oct 2004 16:47:27 -0300

Hello,

On 10/11/2004 12:10 PM, Jason wrote:
> From what I can tell, the PHP libraries allow you to compress a block
> of data. I was wondering if anybody came across a library (or
> extension) that let you create a zip, tar/bzip (or something similar),
> hell, even a .cab of a list of files.
>
> I would like to provide a screen to package up a set of files to
> download, compress them and deliver them as one compressed package.
> Rolling my own "wrapper" around the PHP libraries doesn't seem like much
> of an option since I would have to write client-side utilities to
> uncompress whatever I put together.
>
> I am trying hard to keep my application cross-platform, but am willing
> to give that up since delivering documents is an important part of the
> document management system I'm trying to put together.

You may want to take a look at these classes meant for that purpose:

http://www.phpclasses.org/browse/class/42.html

-- 
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html


Relevant Pages

  • Re: how do I compress large files? was Re: can this backup script work?
    ... Since the mysqldump produces a file that is over a gig in size, we want to compress the file. ... So I'm using file_get_contents to load the backup database info as a string. ... Is PHP actually using a gig of memory to hold this giant string? ... saved to another server, linked to the current server using NFS. ...
    (alt.php)
  • Re: questions about compressing web page downloads with Gzip
    ... gidnetwork. ... If they can compress ... it takes me at least 30 milliseconds to make a ... I didn't bother comparing .php to .php because I'm not going to do it ...
    (alt.html)
  • Re: questions about compressing web page downloads with Gzip
    ... I work on several PHP sites that I could use this on if it's ... gidnetwork. ... compress their 19K to a half they have saved 9.5KB out of a total ... it takes me at least 30 milliseconds to make a ...
    (alt.html)
  • Re: Anyone know AJAX / PHP?
    ... why not download all the dates in the database at page ... in terms of a php generated javascript array. ... the messages and dates..so you have a local copy to validate against. ... Whether Apache can routinely compress or not I have never bothered to find out. ...
    (comp.lang.javascript)
  • Re:
    ... Is there any reason not to use this code, such as a superior choice? ... CSS or JavaScript without the need of using PHP to serve it. ... Plus it will compress things like css and JavaScript and XML too. ... Do you know of any modern browsers that have an issue wtih mod_deflate, if I can get the ISPs to enable it? ...
    (comp.lang.php)