[Phpmyadmin-devel] gzip dump

Armel FAUVEAU webmaster at phpindex.com
Mon Jun 25 20:45:50 CEST 2001


> I agree, in fact it should be easier to implement the
> "gzip of the dump feature" that way. Is anybody working on that,
> I think someone does ?!

Last month, i worked on the gzip dump, just for fun.
But, i had problem.

** First method use gzwrite().
Binary-safe gz-file write.

Good : support by php3/php4
Bad : require write access on the server.

** Second method use gzencode().
Create a gzip compressed string

Good : create a gzip compressed string...on the fly
Bad : support by >= php4.0.4 

What do you think about this  ?

I prefer the second one.
With a simple test for this feature, like :

if (function_exists('gzencode')) {
// gzip dump feature is ok



More information about the Developers mailing list