PDA

View Full Version : Zip/Rar/GZip file?


Deaths
04-24-2005, 02:55 PM
I was wondering how I could zip, rar or gzip an array of files located in /files, and then let the user download it.

I know it's possible, because phpMyAdmin does it, heh.

Help would be appreciated, as always.

Zachery
04-24-2005, 03:04 PM
I was wondering how I could zip, rar or gzip an array of files located in /files, and then let the user download it.

I know it's possible, because phpMyAdmin does it, heh.

Help would be appreciated, as always.
You're host would need to havve the libs avaible in php like zlib or zip I think...

Deaths
04-24-2005, 04:17 PM
I know they're there, and I know it's possible, but I just don't know how to (g)zip an array of files...

Doesn't the member area at vb.com use this aswell?

Trigunflame
04-24-2005, 04:21 PM
*directs death to vb backup pro*

Deaths
04-24-2005, 04:39 PM
I've looked through your code (very nicely coded by the way :D), but I'm guessing we misunderstood eachother.

What I want to do, is get an array of files (located in a directory), and compress them.

From what I understood what your hack does, is that it creates a zip of a single file, which is the SQL backup.

I don't know if I'm correct though, never tried your hack.

If your hack does indeed do what I want, could you maybe point me in the right direction? (where to look for the code)