LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   PHP ZIP MYSQL - open zip without writing it to disk (http://www.linuxquestions.org/questions/programming-9/php-zip-mysql-open-zip-without-writing-it-to-disk-781991/)

benjalien 01-13-2010 11:07 AM

PHP ZIP MYSQL - open zip without writing it to disk
 
Hi everyone,

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?

Thanks!

Benjalien

nileshgr 01-15-2010 04:55 AM

Nope. I don't think such a thing is possible.

rylan76 01-15-2010 05:14 AM

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 09:48 AM.