Page 1 of 1

Zip Files

Posted: Sun Feb 19, 2006 3:40 pm
by icesolid
I was wondering if it is possible to have PHP put an HTML table into a zip file?

Posted: Sun Feb 19, 2006 3:43 pm
by feyd
explain.

Posted: Sun Feb 19, 2006 3:46 pm
by yum-jelly
Sure you can put anything in a zip file...

Are you using some zip class, if so which one? I like zip_lock, it the only class I've seen that allows for encrypting files in the zip with a password.

yj!

None

Posted: Sun Feb 19, 2006 3:51 pm
by icesolid
I want to take a table like this:

Code: Select all

<table>
  <tr>
    <td></td>
    <td></td>
  </tr>
</table>
And put it into a zip file, like save that table above as a .HTML file in a ZIP file.

I do not want to save the zip file to my server, I only want it to be temporarily available until the user leaves the page or i redirect them elsewhere on my site

Posted: Sun Feb 19, 2006 3:57 pm
by feyd
redmonkey posted the following which will allows the in-memory creation of a zip in various compression formats. viewtopic.php?t=29027