Zip Files

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
icesolid
Forum Regular
Posts: 502
Joined: Mon May 06, 2002 9:36 pm
Location: Buffalo, NY

Zip Files

Post by icesolid »

I was wondering if it is possible to have PHP put an HTML table into a zip file?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

explain.
yum-jelly
Forum Commoner
Posts: 98
Joined: Sat Oct 29, 2005 9:16 pm

Post 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!
icesolid
Forum Regular
Posts: 502
Joined: Mon May 06, 2002 9:36 pm
Location: Buffalo, NY

None

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

redmonkey posted the following which will allows the in-memory creation of a zip in various compression formats. viewtopic.php?t=29027
Post Reply