PHP ZIP MYSQL - open zip without writing it to disk
I have a nice mysql DB with some zip stored as blobs.
I need to do some small modifications on a textfile in the zip, then send it to the browser as a file.
I would like to do this without having to save the zip to a tempfile, but it seems that the php zip function can only be used on files and not on variables.
Has anyone had any luck woth something like that?
If I could bet a "ressource" pointing to my zip variable, I could open it as a file, is that possible?
Nope. I don't think such a thing is possible.
Take a look at the PCLZip library. Worked with it very long ago, if I remember right might have a function to compress / decompress to memory instead of a file in PHP.
|All times are GMT -5. The time now is 11:15 AM.|