LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 01-13-2010, 12:07 PM   #1
benjalien
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: Debian (i686/ppc/amd64)
Posts: 85

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?

Thanks!

Benjalien
 
Old 01-15-2010, 05:55 AM   #2
nileshgr
Member
 
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, 06:14 AM   #3
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,477

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


Reply


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 11:06 PM
Zip gives error "-bash: /usr/bin/zip: Argument list too long" konathamsrinu Programming 3 07-06-2006 11:08 AM
create a self-extracting zip file with zip on solaris? samsolaris Solaris / OpenSolaris 3 10-15-2004 02:50 AM
Zip Disk Ian_Hawdon Linux - Hardware 8 05-21-2003 01:55 PM
It is impossible to open the zip files from floppy disk or cd rom jjay02 Linux - Distributions 1 08-11-2002 06:52 PM


All times are GMT -5. The time now is 09:54 AM.

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