Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-13-2010, 11:07 AM   #1
Registered: Aug 2003
Location: Belgium
Distribution: Debian (i686/ppc/amd64)
Posts: 86

Rep: Reputation: 15
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?


Old 01-15-2010, 04:55 AM   #2
Registered: Aug 2007
Location: Pune, Maharashtra, India
Distribution: Gentoo
Posts: 84

Rep: Reputation: 16
Nope. I don't think such a thing is possible.
Old 01-15-2010, 05:14 AM   #3
Senior Member
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,550

Rep: Reputation: 101Reputation: 101
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Php Zip Cottsay Linux - Software 2 09-30-2006 10:06 PM
Zip gives error "-bash: /usr/bin/zip: Argument list too long" konathamsrinu Programming 3 07-06-2006 10:08 AM
create a self-extracting zip file with zip on solaris? samsolaris Solaris / OpenSolaris 3 10-15-2004 01:50 AM
Zip Disk Ian_Hawdon Linux - Hardware 8 05-21-2003 12:55 PM
It is impossible to open the zip files from floppy disk or cd rom jjay02 Linux - Distributions 1 08-11-2002 05:52 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration